During 2nd stage setup, define also DNS hostname of the computer if possible
authorHervé Poussineau <hpoussin@reactos.org>
Tue, 27 Sep 2005 14:27:14 +0000 (14:27 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Tue, 27 Sep 2005 14:27:14 +0000 (14:27 +0000)
svn path=/trunk/; revision=18125

reactos/lib/syssetup/wizard.c

index ab620d2..d524091 100644 (file)
@@ -480,6 +480,8 @@ ComputerPageDlgProc(HWND hwndDlg,
                   SetWindowLong(hwndDlg, DWL_MSGRESULT, -1);
                   return TRUE;
                 }
+                /* Try to also set DNS hostname */
+                SetComputerNameEx(ComputerNamePhysicalDnsHostname, ComputerName);
 
                 /* Check admin passwords */
                 GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD1, Password1, 15);