[WIN32K:NTUSER]

- Window station handles are normally user handles. Treat them as such
CORE-10207

svn path=/trunk/; revision=69731
This commit is contained in:
Thomas Faber 2015-10-28 11:29:42 +00:00
parent 857d9e69e3
commit 4af490caec
5 changed files with 11 additions and 11 deletions

View file

@ -25,7 +25,7 @@ IntGetWinStaForCbAccess(VOID)
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");

View file

@ -1534,7 +1534,7 @@ NtUserSetWindowsHookEx( HINSTANCE Mod,
}
Status = IntValidateWindowStationHandle( PsGetCurrentProcess()->Win32WindowStation,
KernelMode,
UserMode,
0,
&WinStaObj,
0);

View file

@ -4776,7 +4776,7 @@ HMENU FASTCALL UserCreateMenu(PDESKTOP Desktop, BOOL PopupMenu)
*/
Status = IntValidateWindowStationHandle(CurrentProcess->Win32WindowStation,
KernelMode,
UserMode,
0,
&WinStaObject,
0);

View file

@ -3357,7 +3357,7 @@ HWND FASTCALL UserGetShellWindow(VOID)
HWND Ret;
NTSTATUS Status = IntValidateWindowStationHandle(PsGetCurrentProcess()->Win32WindowStation,
KernelMode,
UserMode,
0,
&WinStaObject,
0);
@ -3407,7 +3407,7 @@ NtUserSetShellWindowEx(HWND hwndShell, HWND hwndListView)
}
Status = IntValidateWindowStationHandle(PsGetCurrentProcess()->Win32WindowStation,
KernelMode,
UserMode,
0,
&WinStaObject,
0);

View file

@ -599,7 +599,7 @@ NtUserCloseWindowStation(
Status = IntValidateWindowStationHandle(
hWinSta,
KernelMode,
UserMode,
0,
&Object,
0);
@ -901,7 +901,7 @@ UserSetProcessWindowStation(HWINSTA hWindowStation)
if(hWindowStation !=NULL)
{
Status = IntValidateWindowStationHandle( hWindowStation,
KernelMode,
UserMode,
0,
&NewWinSta,
&ObjectHandleInfo);
@ -1017,7 +1017,7 @@ NtUserLockWindowStation(HWINSTA hWindowStation)
Status = IntValidateWindowStationHandle(
hWindowStation,
KernelMode,
UserMode,
0,
&Object,
0);
@ -1063,7 +1063,7 @@ NtUserUnlockWindowStation(HWINSTA hWindowStation)
Status = IntValidateWindowStationHandle(
hWindowStation,
KernelMode,
UserMode,
0,
&Object,
0);
@ -1274,7 +1274,7 @@ BuildDesktopNameList(
UNICODE_STRING DesktopName;
Status = IntValidateWindowStationHandle(hWindowStation,
KernelMode,
UserMode,
0,
&WindowStation,
0);
@ -1461,7 +1461,7 @@ NtUserSetWindowStationUser(
}
Status = IntValidateWindowStationHandle(hWindowStation,
KernelMode,
UserMode,
0,
&WindowStation,
0);