pass the correct access mode to ObOpenObjectByName
authorThomas Bluemel <thomas@reactsoft.com>
Mon, 8 Aug 2005 15:33:04 +0000 (15:33 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Mon, 8 Aug 2005 15:33:04 +0000 (15:33 +0000)
svn path=/trunk/; revision=17204

reactos/subsys/win32k/ntuser/desktop.c
reactos/subsys/win32k/ntuser/winsta.c

index 544794e..1d2602a 100644 (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);
index 4fcca8f..e887493 100644 (file)
@@ -466,7 +466,7 @@ NtUserCreateWindowStation(
       &ObjectAttributes,
       ExWindowStationObjectType,
       NULL,
-      UserMode,
+      KernelMode,
       dwDesiredAccess,
       NULL,
       (PVOID*)&WindowStation);