mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[WIN32K:NTUSER] Make sure to hold User Global Lock before unmapping desktop heap
This commit is contained in:
committed by
Jérôme Gardou
parent
6ec0420dc6
commit
8c098ee8d2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user