[NtGDI] Set owner after changing object type.

This commit is contained in:
James Tabor 2021-09-27 23:49:35 -05:00
parent d9f8b8b033
commit 72f115d6ed

View file

@ -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;