--- trunk/reactos/subsys/win32k/eng/surface.c 2005-09-03 11:51:22 UTC (rev 17620)
+++ trunk/reactos/subsys/win32k/eng/surface.c 2005-09-03 17:40:33 UTC (rev 17621)
@@ -394,6 +394,8 @@
if (NewSurface == NULL)
return 0;
+ GDIOBJ_SetOwnership(NewSurface, NULL);
+
BitmapObj = BITMAPOBJ_LockBitmap(NewSurface);
if (! BITMAPOBJ_InitBitsLock(BitmapObj))
{
@@ -403,8 +405,6 @@
}
SurfObj = &BitmapObj->SurfObj;
- GDIOBJ_SetOwnership(NewSurface, NULL);
-
SurfObj->dhsurf = dhsurf;
SurfObj->hsurf = NewSurface;
SurfObj->sizlBitmap = Size;