mirror of
https://github.com/reactos/reactos.git
synced 2024-10-07 01:44:21 +00:00
No need to ask for more rights than needed
svn path=/trunk/; revision=26073
This commit is contained in:
parent
cd1198b3d6
commit
62be77605d
|
@ -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);
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue