Author: tfaber
Date: Tue May 3 12:50:35 2016
New Revision: 71240
URL:
http://svn.reactos.org/svn/reactos?rev=71240&view=rev
Log:
[WIN32K:NTUSER]
- Desktops should keep a reference to their parent window station
CORE-11124
Modified:
trunk/reactos/win32ss/user/ntuser/desktop.c
Modified: trunk/reactos/win32ss/user/ntuser/desktop.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/deskto…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/desktop.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/desktop.c [iso-8859-1] Tue May 3 12:50:35 2016
@@ -166,6 +166,9 @@
/* Free the heap */
IntFreeDesktopHeap(pdesk);
+
+ ObDereferenceObject(pdesk->rpwinstaParent);
+
return STATUS_SUCCESS;
}
@@ -1217,6 +1220,7 @@
RtlZeroMemory(pdesk, sizeof(DESKTOP));
/* Link the desktop with the parent window station */
+ ObReferenceObject(pwinsta);
pdesk->rpwinstaParent = pwinsta;
InsertTailList(&pwinsta->DesktopListHead, &pdesk->ListEntry);