- Use ObCloseHandle instead of ZwClose when closing window station handles

svn path=/trunk/; revision=51480
This commit is contained in:
Giannis Adamopoulos 2011-04-28 19:52:23 +00:00
parent 654d08212e
commit f2fa7073c4

View file

@ -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;