- 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:
Giannis Adamopoulos 2012-02-11 22:17:46 +00:00
parent 9c80eb0d00
commit bf9a2b9964

View file

@ -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))
{