mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[WIN32K:NTUSER] Make sure to hold User Global Lock before unmapping desktop heap
This commit is contained in:
parent
6ec0420dc6
commit
8c098ee8d2
1 changed files with 5 additions and 1 deletions
|
@ -215,6 +215,7 @@ NTAPI
|
||||||
IntDesktopObjectClose(
|
IntDesktopObjectClose(
|
||||||
_In_ PVOID Parameters)
|
_In_ PVOID Parameters)
|
||||||
{
|
{
|
||||||
|
NTSTATUS Ret;
|
||||||
PWIN32_CLOSEMETHOD_PARAMETERS CloseParameters = Parameters;
|
PWIN32_CLOSEMETHOD_PARAMETERS CloseParameters = Parameters;
|
||||||
PPROCESSINFO ppi = PsGetProcessWin32Process(CloseParameters->Process);
|
PPROCESSINFO ppi = PsGetProcessWin32Process(CloseParameters->Process);
|
||||||
if (ppi == NULL)
|
if (ppi == NULL)
|
||||||
|
@ -224,7 +225,10 @@ IntDesktopObjectClose(
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
return IntUnmapDesktopView((PDESKTOP)CloseParameters->Object);
|
UserEnterExclusive();
|
||||||
|
Ret = IntUnmapDesktopView((PDESKTOP)CloseParameters->Object);
|
||||||
|
UserLeave();
|
||||||
|
return Ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue