Mikhail Zvyozdochkin: If I enter directly DNS server address in TCP/IP properties window, and after it open this window again, DNS server address is not retrieved to text field.

Patch 1746

svn path=/trunk/; revision=24105
This commit is contained in:
Aleksey Bragin 2006-09-14 08:20:50 +00:00
parent dc1e819150
commit d64332beb2

View file

@ -357,7 +357,7 @@ TCPIPPropertyPageProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
DlgData = (PTCPIP_PROPERTIES_DATA) GetWindowLongPtrW(Dlg, GWL_USERDATA);
switch(uMsg) {
case WM_INITDIALOG:
case WM_INITDIALOG:
Page = (LPPROPSHEETPAGEW) lParam;
DlgData = (PTCPIP_PROPERTIES_DATA) Page->lParam;
SetWindowLongPtrW(Dlg, GWL_USERDATA, Page->lParam);
@ -390,7 +390,12 @@ TCPIPPropertyPageProc(HWND Dlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
ntohl(DlgData->OldDns2));
}
}
ManualDNS(Dlg, INADDR_NONE != DlgData->OldDns1, 0);
if (DlgData->OldDhcpEnabled)
{
ManualDNS(Dlg, INADDR_NONE != DlgData->OldDns1, 0);
}
break;
case WM_COMMAND: