Author: janderwald
Date: Wed Oct 29 08:42:04 2008
New Revision: 37056
URL:
http://svn.reactos.org/svn/reactos?rev=37056&view=rev
Log:
- Only display a gateway address when there is one
Modified:
trunk/reactos/dll/win32/netshell/lang/bg-BG.rc
trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc
trunk/reactos/dll/win32/netshell/lang/da-DK.rc
trunk/reactos/dll/win32/netshell/lang/de-DE.rc
trunk/reactos/dll/win32/netshell/lang/el-GR.rc
trunk/reactos/dll/win32/netshell/lang/en-US.rc
trunk/reactos/dll/win32/netshell/lang/es-ES.rc
trunk/reactos/dll/win32/netshell/lang/fr-FR.rc
trunk/reactos/dll/win32/netshell/lang/hu-HU.rc
trunk/reactos/dll/win32/netshell/lang/id-ID.rc
trunk/reactos/dll/win32/netshell/lang/it-IT.rc
trunk/reactos/dll/win32/netshell/lang/ja-JP.rc
trunk/reactos/dll/win32/netshell/lang/nl-NL.rc
trunk/reactos/dll/win32/netshell/lang/no-NO.rc
trunk/reactos/dll/win32/netshell/lang/pl-PL.rc
trunk/reactos/dll/win32/netshell/lang/ru-RU.rc
trunk/reactos/dll/win32/netshell/lang/sk-SK.rc
trunk/reactos/dll/win32/netshell/lang/sv-SE.rc
trunk/reactos/dll/win32/netshell/lang/uk-UA.rc
trunk/reactos/dll/win32/netshell/lang/zh-CN.rc
trunk/reactos/dll/win32/netshell/lanstatusui.c
Modified: trunk/reactos/dll/win32/netshell/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/bg…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/bg-BG.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/bg-BG.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "Íåíàëè÷íî", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Ïîäðîáíîñòè...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/cs…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/cs-CZ.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Detaily...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/da-DK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/da…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/da-DK.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/da-DK.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/de…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/de-DE.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "Nicht verfügbar", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/el-GR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/el…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/el-GR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/el-GR.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/en…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/en-US.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/es…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/es-ES.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/es-ES.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -57,7 +57,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 110, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 110, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 110, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 110, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 110, 62, 80, 8
PUSHBUTTON "&Detalles...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/fr…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/fr-FR.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/fr-FR.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Détails...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/hu-HU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/hu…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/hu-HU.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/hu-HU.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/id…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/id-ID.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/id-ID.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Detil...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/it…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/it-IT.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/it-IT.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -67,7 +67,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Dettagli...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/ja…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/ja-JP.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/ja-JP.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/nl…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/nl-NL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/nl-NL.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/no…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/no-NO.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/no-NO.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -66,7 +66,7 @@
RTEXT "Ikke tilgjengelig", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Detaljer...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/pl…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/pl-PL.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/pl-PL.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "n/d", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Szczegó³y...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/ru…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/ru-RU.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/ru-RU.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Äîïîëíèòåëüíî...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/sk…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/sk-SK.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/sk-SK.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -68,7 +68,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "Po&drobnosti...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/sv…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/sv-SE.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/sv-SE.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -63,7 +63,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/uk…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/uk-UA.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/uk-UA.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -65,7 +65,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Ñêëàä...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lang/zh-CN.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lang/zh…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lang/zh-CN.rc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lang/zh-CN.rc [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -62,7 +62,7 @@
RTEXT "N/A", IDC_DETAILSTYPE, 122, 20, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSIP, 122, 34, 80, 8
RTEXT "000.000.000.000", IDC_DETAILSSUBNET, 122, 48, 80, 8
- RTEXT "000.000.000.000", IDC_DETAILSGATEWAY, 122, 62, 80, 8
+ RTEXT "", IDC_DETAILSGATEWAY, 122, 62, 80, 8
PUSHBUTTON "&Details...", IDC_DETAILS, 22, 76, 62, 14
END
Modified: trunk/reactos/dll/win32/netshell/lanstatusui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netshell/lanstat…
==============================================================================
--- trunk/reactos/dll/win32/netshell/lanstatusui.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netshell/lanstatusui.c [iso-8859-1] Wed Oct 29 08:42:04 2008
@@ -443,10 +443,11 @@
SendMessageW(hDlgCtrl, LVM_SETITEMW, 0, (LPARAM)&li);
li.iItem = InsertItemToListView(hDlgCtrl, IDS_DEF_GATEWAY);
- if (li.iItem >= 0)
+ if (li.iItem >= 0 &&
pCurAdapter->GatewayList.IpAddress.String[0] != '0')
+ {
if (MultiByteToWideChar(CP_ACP, 0,
pCurAdapter->GatewayList.IpAddress.String, -1, szBuffer,
sizeof(szBuffer)/sizeof(WCHAR)))
SendMessageW(hDlgCtrl, LVM_SETITEMW, 0, (LPARAM)&li);
-
+ }
#if 0
li.iItem = InsertItemToListView(hDlgCtrl, IDS_LEASE_OBTAINED);
li.iItem = InsertItemToListView(hDlgCtrl, IDS_LEASE_EXPIRES);
@@ -529,10 +530,12 @@
SendDlgItemMessageW(hwndDlg, IDC_DETAILSSUBNET, WM_SETTEXT, 0,
(LPARAM)szBuffer);
dwIpAddr = ntohl(pContext->Gateway);
- swprintf(szBuffer, L"%u.%u.%u.%u", FIRST_IPADDRESS(dwIpAddr),
SECOND_IPADDRESS(dwIpAddr),
- THIRD_IPADDRESS(dwIpAddr), FOURTH_IPADDRESS(dwIpAddr));
- SendDlgItemMessageW(hwndDlg, IDC_DETAILSGATEWAY, WM_SETTEXT, 0,
(LPARAM)szBuffer);
-
+ if (dwIpAddr)
+ {
+ swprintf(szBuffer, L"%u.%u.%u.%u", FIRST_IPADDRESS(dwIpAddr),
SECOND_IPADDRESS(dwIpAddr),
+ THIRD_IPADDRESS(dwIpAddr), FOURTH_IPADDRESS(dwIpAddr));
+ SendDlgItemMessageW(hwndDlg, IDC_DETAILSGATEWAY, WM_SETTEXT, 0,
(LPARAM)szBuffer);
+ }
return TRUE;
case WM_COMMAND:
if (LOWORD(wParam) == IDC_DETAILS)