mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[WIN32K]
Improve code a bit svn path=/trunk/; revision=58320
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user