Author: hpoussin
Date: Wed Mar 14 15:23:21 2007
New Revision: 26073
URL:
http://svn.reactos.org/svn/reactos?rev=26073&view=rev
Log:
No need to ask for more rights than needed
Modified:
trunk/reactos/base/system/userinit/userinit.c
trunk/reactos/dll/win32/advapi32/reg/reg.c
Modified: trunk/reactos/base/system/userinit/userinit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/userinit/useri…
==============================================================================
--- trunk/reactos/base/system/userinit/userinit.c (original)
+++ trunk/reactos/base/system/userinit/userinit.c Wed Mar 14 15:23:21 2007
@@ -119,7 +119,7 @@
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);
Modified: trunk/reactos/dll/win32/advapi32/reg/reg.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/reg/reg…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/reg/reg.c (original)
+++ trunk/reactos/dll/win32/advapi32/reg/reg.c Wed Mar 14 15:23:21 2007
@@ -902,7 +902,7 @@
LocalKeyName.Length = wcslen (LocalKeyName.Buffer) * sizeof(WCHAR);
Status = NtCreateKey (&LocalKeyHandle,
- KEY_ALL_ACCESS,
+ KEY_CREATE_SUB_KEY,
&LocalObjectAttributes,
0,
NULL,