Author: gadamopoulos
Date: Tue Jun 20 19:26:37 2017
New Revision: 75154
URL:
http://svn.reactos.org/svn/reactos?rev=75154&view=rev
Log:
[WIN32K:NTUSER] -IntSetThreadDesktop: Don't close the previous desktop handle. Fixes a
lot of tests. Based on a patch by Sebastian Gasiorek. CORE-13463
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 Jun 20 19:26:37 2017
@@ -2378,7 +2378,6 @@
IN BOOL FreeOnFailure)
{
PDESKTOP pdesk = NULL, pdeskOld;
- HDESK hdeskOld;
PTHREADINFO pti;
NTSTATUS Status;
PCLIENTTHREADINFO pctiOld, pctiNew = NULL;
@@ -2467,7 +2466,6 @@
}
pdeskOld = pti->rpdesk;
- hdeskOld = pti->hdesk;
if (pti->pcti != &pti->cti)
pctiOld = pti->pcti;
else
@@ -2515,7 +2513,6 @@
if (pctiOld) DesktopHeapFree(pdeskOld, pctiOld);
IntUnmapDesktopView(pdeskOld);
ObDereferenceObject(pdeskOld);
- ZwClose(hdeskOld);
}
if (pdesk)