Author: tkreuzer
Date: Sat Feb 16 17:44:38 2013
New Revision: 58320
URL:
http://svn.reactos.org/svn/reactos?rev=58320&view=rev
Log:
[WIN32K]
Improve code a bit
Modified:
trunk/reactos/win32ss/gdi/eng/surface.c
Modified: trunk/reactos/win32ss/gdi/eng/surface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/eng/surface.c?…
==============================================================================
--- trunk/reactos/win32ss/gdi/eng/surface.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/eng/surface.c [iso-8859-1] Sat Feb 16 17:44:38 2013
@@ -339,11 +339,11 @@
/* Set the device handle */
psurf->SurfObj.dhsurf = dhsurf;
+ /* Set public ownership */
+ GDIOBJ_vSetObjectOwner(&psurf->BaseObject, GDI_OBJ_HMGR_PUBLIC);
+
/* Get the handle for the bitmap */
hbmp = (HBITMAP)psurf->SurfObj.hsurf;
-
- /* Set public ownership */
- GDIOBJ_vSetObjectOwner(&psurf->BaseObject, GDI_OBJ_HMGR_PUBLIC);
/* Unlock the surface and return */
SURFACE_UnlockSurface(psurf);
@@ -377,11 +377,11 @@
/* Set the device handle */
psurf->SurfObj.dhsurf = dhsurf;
+ /* Set public ownership */
+ GDIOBJ_vSetObjectOwner(&psurf->BaseObject, GDI_OBJ_HMGR_PUBLIC);
+
/* Get the handle for the surface */
hsurf = psurf->SurfObj.hsurf;
-
- /* Set public ownership */
- GDIOBJ_vSetObjectOwner(&psurf->BaseObject, GDI_OBJ_HMGR_PUBLIC);
/* Unlock the surface and return */
SURFACE_UnlockSurface(psurf);