No need to ask for more rights than needed
authorHervé Poussineau <hpoussin@reactos.org>
Wed, 14 Mar 2007 12:23:21 +0000 (12:23 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Wed, 14 Mar 2007 12:23:21 +0000 (12:23 +0000)
svn path=/trunk/; revision=26073

reactos/base/system/userinit/userinit.c
reactos/dll/win32/advapi32/reg/reg.c

index e5fa985..993a005 100644 (file)
@@ -119,7 +119,7 @@ BOOL GetShell(WCHAR *CommandLine, HKEY hRootKey)
   BOOL ConsoleShell = IsConsoleShell();
 
   if(RegOpenKeyEx(hRootKey,
-                  L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon", /* FIXME: should be REGSTR_PATH_WINLOGON */
+                  REGSTR_PATH_WINLOGON,
                   0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
   {
     Size = MAX_PATH * sizeof(WCHAR);
index f83ab44..165f044 100644 (file)
@@ -902,7 +902,7 @@ CreateNestedKey(PHKEY KeyHandle,
       LocalKeyName.Length = wcslen (LocalKeyName.Buffer) * sizeof(WCHAR);
 
       Status = NtCreateKey (&LocalKeyHandle,
-                           KEY_ALL_ACCESS,
+                           KEY_CREATE_SUB_KEY,
                            &LocalObjectAttributes,
                            0,
                            NULL,