No need to ask for more rights than needed

svn path=/trunk/; revision=26073
This commit is contained in:
Hervé Poussineau 2007-03-14 12:23:21 +00:00
parent cd1198b3d6
commit 62be77605d
2 changed files with 2 additions and 2 deletions

View 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);

View 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,