[BOOTDATA][MSGINA][SYSSETUP] Rename the DefaultDomain registry value to DefaultDomainName

This commit is contained in:
Eric Kohl 2018-05-22 11:30:27 +02:00
parent 665926d38b
commit b784c7bfba
4 changed files with 5 additions and 5 deletions

View file

@ -1373,7 +1373,7 @@ HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","ConsoleShell",0x00
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","Shell",0x00020000,"%SystemRoot%\explorer.exe"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","Userinit",0x00020000,"%SystemRoot%\system32\userinit.exe"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","AutoAdminLogon",0x00000000,"1"
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultDomain",0x00000000,""
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultDomainName",0x00000000,""
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultUserName",0x00000000,""
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon","DefaultPassword",0x00000000,""
HKLM,"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify",,0x00000012

View file

@ -246,7 +246,7 @@ GetRegistrySettings(PGINA_CONTEXT pgContext)
dwSize = sizeof(pgContext->Domain);
rc = RegQueryValueExW(hKey,
L"DefaultDomain",
L"DefaultDomainName",
NULL,
NULL,
(LPBYTE)&pgContext->Domain,

View file

@ -580,7 +580,7 @@ SetAutoAdminLogon(VOID)
if (wcscmp(szAutoAdminLogon, L"1") == 0)
{
RegSetValueExW(hKey,
L"DefaultDomain",
L"DefaultDomainName",
0,
REG_SZ,
(LPBYTE)AdminInfo.Domain,

View file

@ -594,14 +594,14 @@ WriteDefaultLogonData(LPWSTR Domain)
return FALSE;
lError = RegSetValueEx(hKey,
L"DefaultDomain",
L"DefaultDomainName",
0,
REG_SZ,
(LPBYTE)Domain,
(wcslen(Domain)+ 1) * sizeof(WCHAR));
if (lError != ERROR_SUCCESS)
{
DPRINT1("RegSetValueEx(\"DefaultDomain\") failed!\n");
DPRINT1("RegSetValueEx(\"DefaultDomainName\") failed!\n");
}
lError = RegSetValueEx(hKey,