From d64332beb253c78ec303888437d1de8d86f1f7f3 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Thu, 14 Sep 2006 08:20:50 +0000 Subject: [PATCH] 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 --- reactos/dll/cpl/ncpa/tcpip_properties.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/dll/cpl/ncpa/tcpip_properties.c b/reactos/dll/cpl/ncpa/tcpip_properties.c index 9cb905f6001..d2163435cd7 100644 --- a/reactos/dll/cpl/ncpa/tcpip_properties.c +++ b/reactos/dll/cpl/ncpa/tcpip_properties.c @@ -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: