projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[CMAKE]
[reactos.git]
/
subsystems
/
win32
/
win32k
/
objects
/
dcstate.c
diff --git
a/subsystems/win32/win32k/objects/dcstate.c
b/subsystems/win32/win32k/objects/dcstate.c
index
9491db2
..
5af2052
100644
(file)
--- a/
subsystems/win32/win32k/objects/dcstate.c
+++ b/
subsystems/win32/win32k/objects/dcstate.c
@@
-101,16
+101,12
@@
DC_vRestoreDC(
IN PDC pdc,
INT iSaveLevel)
{
IN PDC pdc,
INT iSaveLevel)
{
- PEPROCESS pepCurrentProcess;
HDC hdcSave;
PDC pdcSave;
ASSERT(iSaveLevel > 0);
DPRINT("DC_vRestoreDC(%p, %ld)\n", pdc->BaseObject.hHmgr, iSaveLevel);
HDC hdcSave;
PDC pdcSave;
ASSERT(iSaveLevel > 0);
DPRINT("DC_vRestoreDC(%p, %ld)\n", pdc->BaseObject.hHmgr, iSaveLevel);
- /* Get current process */
- pepCurrentProcess = PsGetCurrentProcess();
-
/* Loop the save levels */
while (pdc->dclevel.lSaveDepth > iSaveLevel)
{
/* Loop the save levels */
while (pdc->dclevel.lSaveDepth > iSaveLevel)
{
@@
-118,7
+114,7
@@
DC_vRestoreDC(
DPRINT("RestoreDC = %p\n", hdcSave);
/* Set us as the owner */
DPRINT("RestoreDC = %p\n", hdcSave);
/* Set us as the owner */
- if (!G
DIOBJ_SetOwnership(hdcSave, pepCurrentProcess
))
+ if (!G
reSetObjectOwner(hdcSave, GDI_OBJ_HMGR_POWNED
))
{
/* Could not get ownership. That's bad! */
DPRINT1("Could not get ownership of saved DC (%p) for hdc %p!\n",
{
/* Could not get ownership. That's bad! */
DPRINT1("Could not get ownership of saved DC (%p) for hdc %p!\n",
@@
-261,7
+257,7
@@
NtGdiSaveDC(
/* Make it a kernel handle
(FIXME: windows handles this different, see wiki)*/
/* Make it a kernel handle
(FIXME: windows handles this different, see wiki)*/
- G
DIOBJ_SetOwnership(hdcSave, NULL
);
+ G
reSetObjectOwner(hdcSave, GDI_OBJ_HMGR_PUBLIC
);
/* Copy the current state */
DC_vCopyState(pdc, pdcSave, TRUE);
/* Copy the current state */
DC_vCopyState(pdc, pdcSave, TRUE);