mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[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:
parent
857d9e69e3
commit
4af490caec
5 changed files with 11 additions and 11 deletions
|
@ -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");
|
||||
|
|
|
@ -1534,7 +1534,7 @@ NtUserSetWindowsHookEx( HINSTANCE Mod,
|
|||
}
|
||||
|
||||
Status = IntValidateWindowStationHandle( PsGetCurrentProcess()->Win32WindowStation,
|
||||
KernelMode,
|
||||
UserMode,
|
||||
0,
|
||||
&WinStaObj,
|
||||
0);
|
||||
|
|
|
@ -4776,7 +4776,7 @@ HMENU FASTCALL UserCreateMenu(PDESKTOP Desktop, BOOL PopupMenu)
|
|||
*/
|
||||
|
||||
Status = IntValidateWindowStationHandle(CurrentProcess->Win32WindowStation,
|
||||
KernelMode,
|
||||
UserMode,
|
||||
0,
|
||||
&WinStaObject,
|
||||
0);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue