mirror of
https://github.com/reactos/reactos.git
synced 2025-04-20 04:20:46 +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,
|
Status = ObOpenObjectByName(&ObjectAttributes,
|
||||||
ExWindowStationObjectType,
|
ExWindowStationObjectType,
|
||||||
NULL,
|
NULL,
|
||||||
UserMode,
|
KernelMode,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
(HANDLE*)hWinSta);
|
(HANDLE*)hWinSta);
|
||||||
|
@ -282,7 +282,7 @@ IntParseDesktopPath(PEPROCESS Process,
|
||||||
Status = ObOpenObjectByName(&ObjectAttributes,
|
Status = ObOpenObjectByName(&ObjectAttributes,
|
||||||
ExDesktopObjectType,
|
ExDesktopObjectType,
|
||||||
NULL,
|
NULL,
|
||||||
UserMode,
|
KernelMode,
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
(HANDLE*)hDesktop);
|
(HANDLE*)hDesktop);
|
||||||
|
@ -766,7 +766,7 @@ NtUserCreateDesktop(
|
||||||
* Try to open already existing desktop
|
* 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 */
|
/* Initialize ObjectAttributes for the desktop object */
|
||||||
InitializeObjectAttributes(
|
InitializeObjectAttributes(
|
||||||
|
@ -780,7 +780,7 @@ NtUserCreateDesktop(
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
ExDesktopObjectType,
|
ExDesktopObjectType,
|
||||||
NULL,
|
NULL,
|
||||||
UserMode,
|
KernelMode,
|
||||||
dwDesiredAccess,
|
dwDesiredAccess,
|
||||||
NULL,
|
NULL,
|
||||||
(HANDLE*)&Desktop);
|
(HANDLE*)&Desktop);
|
||||||
|
|
|
@ -466,7 +466,7 @@ NtUserCreateWindowStation(
|
||||||
&ObjectAttributes,
|
&ObjectAttributes,
|
||||||
ExWindowStationObjectType,
|
ExWindowStationObjectType,
|
||||||
NULL,
|
NULL,
|
||||||
UserMode,
|
KernelMode,
|
||||||
dwDesiredAccess,
|
dwDesiredAccess,
|
||||||
NULL,
|
NULL,
|
||||||
(PVOID*)&WindowStation);
|
(PVOID*)&WindowStation);
|
||||||
|
|
Loading…
Reference in a new issue