mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 16:36:07 +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)
|
||||
{
|
||||
PDESKTOP pdesk = NULL, pdeskOld;
|
||||
HDESK hdeskOld;
|
||||
PTHREADINFO pti;
|
||||
NTSTATUS Status;
|
||||
PCLIENTTHREADINFO pctiOld, pctiNew = NULL;
|
||||
|
@ -2467,7 +2466,6 @@ IntSetThreadDesktop(IN HDESK hDesktop,
|
|||
}
|
||||
|
||||
pdeskOld = pti->rpdesk;
|
||||
hdeskOld = pti->hdesk;
|
||||
if (pti->pcti != &pti->cti)
|
||||
pctiOld = pti->pcti;
|
||||
else
|
||||
|
@ -2515,7 +2513,6 @@ IntSetThreadDesktop(IN HDESK hDesktop,
|
|||
if (pctiOld) DesktopHeapFree(pdeskOld, pctiOld);
|
||||
IntUnmapDesktopView(pdeskOld);
|
||||
ObDereferenceObject(pdeskOld);
|
||||
ZwClose(hdeskOld);
|
||||
}
|
||||
|
||||
if (pdesk)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue