Improve code a bit

svn path=/trunk/; revision=58320
This commit is contained in:
Timo Kreuzer
2013-02-16 17:44:38 +00:00
parent 987bf80da1
commit f37d3dd108
+6 -6
View File
@@ -339,12 +339,12 @@ EngCreateDeviceBitmap(
/* Set the device handle */
psurf->SurfObj.dhsurf = dhsurf;
/* Get the handle for the bitmap */
hbmp = (HBITMAP)psurf->SurfObj.hsurf;
/* Set public ownership */
GDIOBJ_vSetObjectOwner(&psurf->BaseObject, GDI_OBJ_HMGR_PUBLIC);
/* Get the handle for the bitmap */
hbmp = (HBITMAP)psurf->SurfObj.hsurf;
/* Unlock the surface and return */
SURFACE_UnlockSurface(psurf);
return hbmp;
@@ -377,12 +377,12 @@ EngCreateDeviceSurface(
/* Set the device handle */
psurf->SurfObj.dhsurf = dhsurf;
/* Get the handle for the surface */
hsurf = psurf->SurfObj.hsurf;
/* Set public ownership */
GDIOBJ_vSetObjectOwner(&psurf->BaseObject, GDI_OBJ_HMGR_PUBLIC);
/* Get the handle for the surface */
hsurf = psurf->SurfObj.hsurf;
/* Unlock the surface and return */
SURFACE_UnlockSurface(psurf);
return hsurf;