mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:23:05 +00:00
[WIN32K:NTUSER] -IntSetThreadDesktop: Don't close the previous desktop handle. Fixes a lot of tests. Based on a patch by Sebastian Gasiorek. CORE-13463
svn path=/trunk/; revision=75154
This commit is contained in:
parent
7dea13d496
commit
6af2c49b5f
1 changed files with 0 additions and 3 deletions
|
@ -2378,7 +2378,6 @@ IntSetThreadDesktop(IN HDESK hDesktop,
|
||||||
IN BOOL FreeOnFailure)
|
IN BOOL FreeOnFailure)
|
||||||
{
|
{
|
||||||
PDESKTOP pdesk = NULL, pdeskOld;
|
PDESKTOP pdesk = NULL, pdeskOld;
|
||||||
HDESK hdeskOld;
|
|
||||||
PTHREADINFO pti;
|
PTHREADINFO pti;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
PCLIENTTHREADINFO pctiOld, pctiNew = NULL;
|
PCLIENTTHREADINFO pctiOld, pctiNew = NULL;
|
||||||
|
@ -2467,7 +2466,6 @@ IntSetThreadDesktop(IN HDESK hDesktop,
|
||||||
}
|
}
|
||||||
|
|
||||||
pdeskOld = pti->rpdesk;
|
pdeskOld = pti->rpdesk;
|
||||||
hdeskOld = pti->hdesk;
|
|
||||||
if (pti->pcti != &pti->cti)
|
if (pti->pcti != &pti->cti)
|
||||||
pctiOld = pti->pcti;
|
pctiOld = pti->pcti;
|
||||||
else
|
else
|
||||||
|
@ -2515,7 +2513,6 @@ IntSetThreadDesktop(IN HDESK hDesktop,
|
||||||
if (pctiOld) DesktopHeapFree(pdeskOld, pctiOld);
|
if (pctiOld) DesktopHeapFree(pdeskOld, pctiOld);
|
||||||
IntUnmapDesktopView(pdeskOld);
|
IntUnmapDesktopView(pdeskOld);
|
||||||
ObDereferenceObject(pdeskOld);
|
ObDereferenceObject(pdeskOld);
|
||||||
ZwClose(hdeskOld);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pdesk)
|
if (pdesk)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue