[SYSSETUP]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 18 Jan 2014 16:54:34 +0000 (16:54 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 18 Jan 2014 16:54:34 +0000 (16:54 +0000)
Fix unattended install and disable some debug output.

svn path=/trunk/; revision=61678

reactos/dll/win32/syssetup/security.c
reactos/dll/win32/syssetup/wizard.c

index 644f3c9..0e55d0b 100644 (file)
@@ -423,9 +423,9 @@ SetAdministratorPassword(LPCWSTR Password)
     if (AdminInfo.Password != NULL)
         wcscpy(AdminInfo.Password, Password);
 
     if (AdminInfo.Password != NULL)
         wcscpy(AdminInfo.Password, Password);
 
-    DPRINT1("Administrator Name: %S\n", AdminInfo.Name);
-    DPRINT1("Administrator Domain: %S\n", AdminInfo.Domain);
-    DPRINT1("Administrator Password: %S\n", AdminInfo.Password);
+    DPRINT("Administrator Name: %S\n", AdminInfo.Name);
+    DPRINT("Administrator Domain: %S\n", AdminInfo.Domain);
+    DPRINT("Administrator Password: %S\n", AdminInfo.Password);
 
 done:
     if (AccountNameInfo != NULL)
 
 done:
     if (AccountNameInfo != NULL)
index e246431..eeaada5 100644 (file)
@@ -617,6 +617,7 @@ ComputerPageDlgProc(HWND hwndDlg,
                 SendMessage(GetDlgItem(hwndDlg, IDC_COMPUTERNAME), WM_SETTEXT, 0, (LPARAM)SetupData.ComputerName);
                 SendMessage(GetDlgItem(hwndDlg, IDC_ADMINPASSWORD1), WM_SETTEXT, 0, (LPARAM)SetupData.AdminPassword);
                 SendMessage(GetDlgItem(hwndDlg, IDC_ADMINPASSWORD2), WM_SETTEXT, 0, (LPARAM)SetupData.AdminPassword);
                 SendMessage(GetDlgItem(hwndDlg, IDC_COMPUTERNAME), WM_SETTEXT, 0, (LPARAM)SetupData.ComputerName);
                 SendMessage(GetDlgItem(hwndDlg, IDC_ADMINPASSWORD1), WM_SETTEXT, 0, (LPARAM)SetupData.AdminPassword);
                 SendMessage(GetDlgItem(hwndDlg, IDC_ADMINPASSWORD2), WM_SETTEXT, 0, (LPARAM)SetupData.AdminPassword);
+                SetAdministratorPassword(SetupData.AdminPassword);
             }
 
         }
             }
 
         }