Author: tfaber
Date: Wed Oct 28 11:29:42 2015
New Revision: 69731
URL:
http://svn.reactos.org/svn/reactos?rev=69731&view=rev
Log:
[WIN32K:NTUSER]
- Window station handles are normally user handles. Treat them as such
CORE-10207
Modified:
trunk/reactos/win32ss/user/ntuser/clipboard.c
trunk/reactos/win32ss/user/ntuser/hook.c
trunk/reactos/win32ss/user/ntuser/menu.c
trunk/reactos/win32ss/user/ntuser/window.c
trunk/reactos/win32ss/user/ntuser/winsta.c
Modified: trunk/reactos/win32ss/user/ntuser/clipboard.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/clipbo…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/clipboard.c [iso-8859-1] Wed Oct 28 11:29:42 2015
@@ -25,7 +25,7 @@
NTSTATUS Status;
hWinSta = UserGetProcessWindowStation();
- Status = IntValidateWindowStationHandle(hWinSta, KernelMode, WINSTA_ACCESSCLIPBOARD,
&pWinStaObj, 0);
+ Status = IntValidateWindowStationHandle(hWinSta, UserMode, WINSTA_ACCESSCLIPBOARD,
&pWinStaObj, 0);
if (!NT_SUCCESS(Status))
{
ERR("Cannot open winsta\n");
Modified: trunk/reactos/win32ss/user/ntuser/hook.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/hook.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/hook.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/hook.c [iso-8859-1] Wed Oct 28 11:29:42 2015
@@ -1534,7 +1534,7 @@
}
Status = IntValidateWindowStationHandle(
PsGetCurrentProcess()->Win32WindowStation,
- KernelMode,
+ UserMode,
0,
&WinStaObj,
0);
Modified: trunk/reactos/win32ss/user/ntuser/menu.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/menu.c…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/menu.c [iso-8859-1] Wed Oct 28 11:29:42 2015
@@ -4776,7 +4776,7 @@
*/
Status = IntValidateWindowStationHandle(CurrentProcess->Win32WindowStation,
- KernelMode,
+ UserMode,
0,
&WinStaObject,
0);
Modified: trunk/reactos/win32ss/user/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/window…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/window.c [iso-8859-1] Wed Oct 28 11:29:42 2015
@@ -3357,7 +3357,7 @@
HWND Ret;
NTSTATUS Status =
IntValidateWindowStationHandle(PsGetCurrentProcess()->Win32WindowStation,
- KernelMode,
+ UserMode,
0,
&WinStaObject,
0);
@@ -3407,7 +3407,7 @@
}
Status = IntValidateWindowStationHandle(PsGetCurrentProcess()->Win32WindowStation,
- KernelMode,
+ UserMode,
0,
&WinStaObject,
0);
Modified: trunk/reactos/win32ss/user/ntuser/winsta.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/winsta…
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/winsta.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/winsta.c [iso-8859-1] Wed Oct 28 11:29:42 2015
@@ -599,7 +599,7 @@
Status = IntValidateWindowStationHandle(
hWinSta,
- KernelMode,
+ UserMode,
0,
&Object,
0);
@@ -901,7 +901,7 @@
if(hWindowStation !=NULL)
{
Status = IntValidateWindowStationHandle( hWindowStation,
- KernelMode,
+ UserMode,
0,
&NewWinSta,
&ObjectHandleInfo);
@@ -1017,7 +1017,7 @@
Status = IntValidateWindowStationHandle(
hWindowStation,
- KernelMode,
+ UserMode,
0,
&Object,
0);
@@ -1063,7 +1063,7 @@
Status = IntValidateWindowStationHandle(
hWindowStation,
- KernelMode,
+ UserMode,
0,
&Object,
0);
@@ -1274,7 +1274,7 @@
UNICODE_STRING DesktopName;
Status = IntValidateWindowStationHandle(hWindowStation,
- KernelMode,
+ UserMode,
0,
&WindowStation,
0);
@@ -1461,7 +1461,7 @@
}
Status = IntValidateWindowStationHandle(hWindowStation,
- KernelMode,
+ UserMode,
0,
&WindowStation,
0);