mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 16:36:11 +00:00
[win32k]
- In reactos when an application tries to use a desktop or window station object we never check if it should have access to the object. However the only exception to this is NtUserGetObjectInformation. Since desktops and windows stations are a mess, NtUserGetObjectInformation always fails. Ironically windows do such access checks everywhere except NtUserGetObjectInformation. Fix NtUserGetObjectInformation by removing access checks - Note: access checks for every other place will be fixed soon svn path=/trunk/; revision=55550
This commit is contained in:
parent
9c80eb0d00
commit
bf9a2b9964
|
@ -649,8 +649,8 @@ NtUserGetObjectInformation(
|
|||
TRACE("Trying to open window station 0x%x\n", hObject);
|
||||
Status = IntValidateWindowStationHandle(
|
||||
hObject,
|
||||
UserMode,/*ExGetPreviousMode(),*/
|
||||
GENERIC_READ, /* FIXME: is this ok? */
|
||||
UserMode,
|
||||
0,
|
||||
&WinStaObject);
|
||||
|
||||
|
||||
|
@ -667,8 +667,8 @@ NtUserGetObjectInformation(
|
|||
TRACE("Trying to open desktop 0x%x\n", hObject);
|
||||
Status = IntValidateDesktopHandle(
|
||||
hObject,
|
||||
UserMode,/*ExGetPreviousMode(),*/
|
||||
GENERIC_READ, /* FIXME: is this ok? */
|
||||
UserMode,
|
||||
0,
|
||||
&DesktopObject);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue