projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc1e819
)
Mikhail Zvyozdochkin: If I enter directly DNS server address in TCP/IP properties...
author
Aleksey Bragin
<aleksey@reactos.org>
Thu, 14 Sep 2006 08:20:50 +0000
(08:20 +0000)
committer
Aleksey Bragin
<aleksey@reactos.org>
Thu, 14 Sep 2006 08:20:50 +0000
(08:20 +0000)
Patch 1746
svn path=/trunk/; revision=24105
reactos/dll/cpl/ncpa/tcpip_properties.c
patch
|
blob
|
history
diff --git
a/reactos/dll/cpl/ncpa/tcpip_properties.c
b/reactos/dll/cpl/ncpa/tcpip_properties.c
index
9cb905f
..
d216343
100644
(file)
--- 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: