mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 18:01:07 +00:00
[win32k]
- Use ObCloseHandle instead of ZwClose when closing window station handles svn path=/trunk/; revision=51480
This commit is contained in:
parent
654d08212e
commit
f2fa7073c4
|
@ -621,7 +621,7 @@ NtUserCloseWindowStation(
|
|||
|
||||
DPRINT("Closing window station handle (0x%X)\n", hWinSta);
|
||||
|
||||
Status = ZwClose(hWinSta);
|
||||
Status = ObCloseHandle(hWinSta, UserMode);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
SetLastNtError(Status);
|
||||
|
@ -975,7 +975,7 @@ UserSetProcessWindowStation(HWINSTA hWindowStation)
|
|||
|
||||
if(hwinstaOld != NULL)
|
||||
{
|
||||
ZwClose(hwinstaOld);
|
||||
ObCloseHandle(hwinstaOld, UserMode);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue