[WIN32K]
authorJérôme Gardou <jerome.gardou@reactos.org>
Wed, 1 Sep 2010 20:06:46 +0000 (20:06 +0000)
committerJérôme Gardou <jerome.gardou@reactos.org>
Wed, 1 Sep 2010 20:06:46 +0000 (20:06 +0000)
  - always make icon mask bitmap a global object

svn path=/branches/reactos-yarotows/; revision=48684

subsystems/win32/win32k/ntuser/cursoricon.c

index 917b142..a1650bd 100644 (file)
@@ -1006,8 +1006,8 @@ NtUserSetCursorContents(
         CurIcon->Size.cy = psurfBmp->SurfObj.sizlBitmap.cy / 2;
 
         SURFACE_UnlockSurface(psurfBmp);
-        GDIOBJ_SetOwnership(CurIcon->IconInfo.hbmMask, NULL);
     }
+       GDIOBJ_SetOwnership(CurIcon->IconInfo.hbmMask, NULL);
 
     Ret = TRUE;