mirror of
https://github.com/reactos/reactos.git
synced 2025-04-28 01:11:35 +00:00
[WIN32K:NTUSER]
- Desktops should keep a reference to their parent window station CORE-11124 svn path=/trunk/; revision=71240
This commit is contained in:
parent
16beeefbbb
commit
aa8f87d6c8
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue