https://git.reactos.org/?p=reactos.git;a=commitdiff;h=72f115d6edda81a5f97a4…
commit 72f115d6edda81a5f97a4da085f3f5b215542df1
Author: James Tabor <james.tabor(a)reactos.org>
AuthorDate: Mon Sep 27 23:49:35 2021 -0500
Commit: James Tabor <james.tabor(a)reactos.org>
CommitDate: Mon Sep 27 23:49:35 2021 -0500
[NtGDI] Set owner after changing object type.
---
win32ss/gdi/ntgdi/gdiobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/ntgdi/gdiobj.c b/win32ss/gdi/ntgdi/gdiobj.c
index 7bd97e3fa6d..07c16e0bcae 100644
--- a/win32ss/gdi/ntgdi/gdiobj.c
+++ b/win32ss/gdi/ntgdi/gdiobj.c
@@ -1501,7 +1501,7 @@ GDIOBJ_ConvertFromStockObj(HGDIOBJ *phObj)
/* Update the entry */
pentry->FullUnique &= ~GDI_ENTRY_STOCK_MASK;
- pentry->ObjectOwner.ulObj = 0;
+ pentry->ObjectOwner.ulObj = PtrToUlong(PsGetCurrentProcessId());
/* Get the pointer to the BASEOBJECT */
pobj = pentry->einfo.pobj;