[ros-diffs] [tkreuzer] 42625: [win32k] - GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized. - Found by Amine Khaldi

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Tue Aug 11 20:42:31 CEST 2009


Author: tkreuzer
Date: Tue Aug 11 20:42:30 2009
New Revision: 42625

URL: http://svn.reactos.org/svn/reactos?rev=42625&view=rev
Log:
[win32k]
- GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized.
- Found by Amine Khaldi

Modified:
    trunk/reactos/subsystems/win32/win32k/eng/mouse.c

Modified: trunk/reactos/subsystems/win32/win32k/eng/mouse.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/eng/mouse.c?rev=42625&r1=42624&r2=42625&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/eng/mouse.c [iso-8859-1] Tue Aug 11 20:42:30 2009
@@ -686,11 +686,11 @@
                                      fl | SPS_CHANGE);
 
     /* Cleanup */
-    if (hbmColor)
+    if (psurfColor)
+    {
         EXLATEOBJ_vCleanup(&exlo);
-
-    if (psurfColor)
         SURFACE_ShareUnlockSurface(psurfColor);
+    }
 
     if (psurfMask)
         SURFACE_ShareUnlockSurface(psurfMask);




More information about the Ros-diffs mailing list