[ros-diffs] [tkreuzer] 47609: [WIN32K] Do not free the memory for the bitmap bits, when you have not allocated them. Fixes bugcheck with VBox driver.

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Sun Jun 6 07:45:37 CEST 2010


Author: tkreuzer
Date: Sun Jun  6 07:45:36 2010
New Revision: 47609

URL: http://svn.reactos.org/svn/reactos?rev=47609&view=rev
Log:
[WIN32K]
Do not free the memory for the bitmap bits, when you have not allocated them. Fixes bugcheck with VBox driver.

Modified:
    branches/reactos-yarotows/subsystems/win32/win32k/eng/engmisc.c

Modified: branches/reactos-yarotows/subsystems/win32/win32k/eng/engmisc.c
URL: http://svn.reactos.org/svn/reactos/branches/reactos-yarotows/subsystems/win32/win32k/eng/engmisc.c?rev=47609&r1=47608&r2=47609&view=diff
==============================================================================
--- branches/reactos-yarotows/subsystems/win32/win32k/eng/engmisc.c [iso-8859-1] (original)
+++ branches/reactos-yarotows/subsystems/win32/win32k/eng/engmisc.c [iso-8859-1] Sun Jun  6 07:45:36 2010
@@ -127,7 +127,6 @@
                                         &ClippedDestRect, &SrcPoint))
       {
           EngDeleteClip(EnterLeave->TrivialClipObj);
-          EngFreeMem((*ppsoOutput)->pvBits);
           EngUnlockSurface(*ppsoOutput);
           EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
           return FALSE;
@@ -219,7 +218,6 @@
           Result = TRUE;
         }
       }
-    EngFreeMem(EnterLeave->OutputObj->pvBits);
     EngUnlockSurface(EnterLeave->OutputObj);
     EngDeleteSurface((HSURF)EnterLeave->OutputBitmap);
     EngDeleteClip(EnterLeave->TrivialClipObj);




More information about the Ros-diffs mailing list