From 910c9075f03566e73d94dadc75cad1eecdd0eb4a Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Mon, 8 Aug 2005 15:33:04 +0000 Subject: [PATCH] pass the correct access mode to ObOpenObjectByName svn path=/trunk/; revision=17204 --- reactos/subsys/win32k/ntuser/desktop.c | 8 ++++---- reactos/subsys/win32k/ntuser/winsta.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/desktop.c b/reactos/subsys/win32k/ntuser/desktop.c index 544794e82c6..1d2602ad0e4 100644 --- a/reactos/subsys/win32k/ntuser/desktop.c +++ b/reactos/subsys/win32k/ntuser/desktop.c @@ -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); diff --git a/reactos/subsys/win32k/ntuser/winsta.c b/reactos/subsys/win32k/ntuser/winsta.c index 4fcca8f7c7f..e887493cd65 100644 --- a/reactos/subsys/win32k/ntuser/winsta.c +++ b/reactos/subsys/win32k/ntuser/winsta.c @@ -466,7 +466,7 @@ NtUserCreateWindowStation( &ObjectAttributes, ExWindowStationObjectType, NULL, - UserMode, + KernelMode, dwDesiredAccess, NULL, (PVOID*)&WindowStation);