mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
[win32k]
- Use ObCloseHandle instead of ZwClose when closing window station handles svn path=/trunk/; revision=51480
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user