[WIN32K:NTUSER]

- Desktops should keep a reference to their parent window station
CORE-11124

svn path=/trunk/; revision=71240
This commit is contained in:
Thomas Faber
2016-05-03 12:50:35 +00:00
parent 16beeefbbb
commit aa8f87d6c8

View File

@@ -166,6 +166,9 @@ IntDesktopObjectDelete(
/* Free the heap */
IntFreeDesktopHeap(pdesk);
ObDereferenceObject(pdesk->rpwinstaParent);
return STATUS_SUCCESS;
}
@@ -1217,6 +1220,7 @@ UserInitializeDesktop(PDESKTOP pdesk, PUNICODE_STRING DesktopName, PWINSTATION_O
RtlZeroMemory(pdesk, sizeof(DESKTOP));
/* Link the desktop with the parent window station */
ObReferenceObject(pwinsta);
pdesk->rpwinstaParent = pwinsta;
InsertTailList(&pwinsta->DesktopListHead, &pdesk->ListEntry);