Author: tkreuzer
Date: Tue May 1 10:33:36 2012
New Revision: 56459
URL:
http://svn.reactos.org/svn/reactos?rev=56459&view=rev
Log:
[WIN32K]
Use GDIOBJ_vSetObjectOwner instead of GreSetObjectOwner on an exclusively locked object.
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dcstate.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dcstate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dcstate.…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dcstate.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dcstate.c [iso-8859-1] Tue May 1 10:33:36 2012
@@ -257,7 +257,7 @@
/* Make it a kernel handle
(FIXME: Windows handles this differently, see Wiki) */
- GreSetObjectOwner(hdcSave, GDI_OBJ_HMGR_PUBLIC);
+ GDIOBJ_vSetObjectOwner(&pdcSave->BaseObject, GDI_OBJ_HMGR_PUBLIC);
/* Copy the current state */
DC_vCopyState(pdc, pdcSave, TRUE);
@@ -266,7 +266,7 @@
if (pdc->dctype == DCTYPE_MEMORY)
DC_vSelectSurface(pdcSave, pdc->dclevel.pSurface);
- /* Copy path */
+ /* Copy path */
/* FIXME: Why this way? */
pdcSave->dclevel.hPath = pdc->dclevel.hPath;
pdcSave->dclevel.flPath = pdc->dclevel.flPath | DCPATH_SAVESTATE;