pass the correct access mode to ObOpenObjectByName

svn path=/trunk/; revision=17204
This commit is contained in:
Thomas Bluemel 2005-08-08 15:33:04 +00:00
parent 74a0c04f23
commit 910c9075f0
2 changed files with 5 additions and 5 deletions

View file

@ -248,7 +248,7 @@ IntParseDesktopPath(PEPROCESS Process,
Status = ObOpenObjectByName(&ObjectAttributes,
ExWindowStationObjectType,
NULL,
UserMode,
KernelMode,
0,
NULL,
(HANDLE*)hWinSta);
@ -282,7 +282,7 @@ IntParseDesktopPath(PEPROCESS Process,
Status = ObOpenObjectByName(&ObjectAttributes,
ExDesktopObjectType,
NULL,
UserMode,
KernelMode,
0,
NULL,
(HANDLE*)hDesktop);
@ -766,7 +766,7 @@ NtUserCreateDesktop(
* Try to open already existing desktop
*/
DPRINT("Trying to open desktop (%wZ)\n", &DesktopName);
DPRINT1("Trying to open desktop (%wZ)\n", &DesktopName);
/* Initialize ObjectAttributes for the desktop object */
InitializeObjectAttributes(
@ -780,7 +780,7 @@ NtUserCreateDesktop(
&ObjectAttributes,
ExDesktopObjectType,
NULL,
UserMode,
KernelMode,
dwDesiredAccess,
NULL,
(HANDLE*)&Desktop);

View file

@ -466,7 +466,7 @@ NtUserCreateWindowStation(
&ObjectAttributes,
ExWindowStationObjectType,
NULL,
UserMode,
KernelMode,
dwDesiredAccess,
NULL,
(PVOID*)&WindowStation);