[win32k]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 11 Aug 2009 18:42:30 +0000 (18:42 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 11 Aug 2009 18:42:30 +0000 (18:42 +0000)
- GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized.
- Found by Amine Khaldi

svn path=/trunk/; revision=42625

reactos/subsystems/win32/win32k/eng/mouse.c

index 97a84d1..6ba618a 100644 (file)
@@ -686,11 +686,11 @@ GreSetPointerShape(
                                      fl | SPS_CHANGE);
 
     /* Cleanup */
                                      fl | SPS_CHANGE);
 
     /* Cleanup */
-    if (hbmColor)
-        EXLATEOBJ_vCleanup(&exlo);
-
     if (psurfColor)
     if (psurfColor)
+    {
+        EXLATEOBJ_vCleanup(&exlo);
         SURFACE_ShareUnlockSurface(psurfColor);
         SURFACE_ShareUnlockSurface(psurfColor);
+    }
 
     if (psurfMask)
         SURFACE_ShareUnlockSurface(psurfMask);
 
     if (psurfMask)
         SURFACE_ShareUnlockSurface(psurfMask);