Author: janderwald
Date: Thu Oct 30 02:24:37 2008
New Revision: 37080
URL:
http://svn.reactos.org/svn/reactos?rev=37080&view=rev
Log:
- Fix displaying MAC of adapter
Modified:
trunk/reactos/dll/win32/netshell/lanstatusui.c
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] Thu Oct 30 02:24:37 2008
@@ -429,9 +429,11 @@
{
li.iItem = InsertItemToListView(hDlgCtrl, IDS_PHYSICAL_ADDRESS);
if (li.iItem >= 0)
- if (MultiByteToWideChar(CP_ACP, 0, (LPCSTR)pCurAdapter->Address,
-1, szBuffer, sizeof(szBuffer)/sizeof(WCHAR)))
- SendMessageW(hDlgCtrl, LVM_SETITEMW, 0, (LPARAM)&li);
-
+ {
+ swprintf(szBuffer,
L"%02x-%02x-%02x-%02x-%02x-%02x",pCurAdapter->Address[0],
pCurAdapter->Address[1],
+ pCurAdapter->Address[2], pCurAdapter->Address[3],
pCurAdapter->Address[4], pCurAdapter->Address[5]);
+ SendMessageW(hDlgCtrl, LVM_SETITEMW, 0, (LPARAM)&li);
+ }
li.iItem = InsertItemToListView(hDlgCtrl, IDS_IP_ADDRESS);
if (li.iItem >= 0)
if (MultiByteToWideChar(CP_ACP, 0,
pCurAdapter->IpAddressList.IpAddress.String, -1, szBuffer,
sizeof(szBuffer)/sizeof(WCHAR)))