mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
pass the correct access mode to ObOpenObjectByName
svn path=/trunk/; revision=17204
This commit is contained in:
parent
74a0c04f23
commit
910c9075f0
2 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -466,7 +466,7 @@ NtUserCreateWindowStation(
|
|||
&ObjectAttributes,
|
||||
ExWindowStationObjectType,
|
||||
NULL,
|
||||
UserMode,
|
||||
KernelMode,
|
||||
dwDesiredAccess,
|
||||
NULL,
|
||||
(PVOID*)&WindowStation);
|
||||
|
|
Loading…
Reference in a new issue