Author: gadamopoulos
Date: Thu Apr 28 19:52:23 2011
New Revision: 51480
URL:
http://svn.reactos.org/svn/reactos?rev=51480&view=rev
Log:
[win32k]
- Use ObCloseHandle instead of ZwClose when closing window station handles
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/winsta.c [iso-8859-1] Thu Apr 28 19:52:23
2011
@@ -621,7 +621,7 @@
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 @@
if(hwinstaOld != NULL)
{
- ZwClose(hwinstaOld);
+ ObCloseHandle(hwinstaOld, UserMode);
}
return TRUE;