mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 13:56:16 +00:00
- Fix displaying MAC of adapter
svn path=/trunk/; revision=37080
This commit is contained in:
parent
7ca1dd308b
commit
9332dccc8c
|
@ -429,9 +429,11 @@ LANStatusUiDetailsDlg(
|
||||||
{
|
{
|
||||||
li.iItem = InsertItemToListView(hDlgCtrl, IDS_PHYSICAL_ADDRESS);
|
li.iItem = InsertItemToListView(hDlgCtrl, IDS_PHYSICAL_ADDRESS);
|
||||||
if (li.iItem >= 0)
|
if (li.iItem >= 0)
|
||||||
if (MultiByteToWideChar(CP_ACP, 0, (LPCSTR)pCurAdapter->Address, -1, szBuffer, sizeof(szBuffer)/sizeof(WCHAR)))
|
{
|
||||||
|
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);
|
SendMessageW(hDlgCtrl, LVM_SETITEMW, 0, (LPARAM)&li);
|
||||||
|
}
|
||||||
li.iItem = InsertItemToListView(hDlgCtrl, IDS_IP_ADDRESS);
|
li.iItem = InsertItemToListView(hDlgCtrl, IDS_IP_ADDRESS);
|
||||||
if (li.iItem >= 0)
|
if (li.iItem >= 0)
|
||||||
if (MultiByteToWideChar(CP_ACP, 0, pCurAdapter->IpAddressList.IpAddress.String, -1, szBuffer, sizeof(szBuffer)/sizeof(WCHAR)))
|
if (MultiByteToWideChar(CP_ACP, 0, pCurAdapter->IpAddressList.IpAddress.String, -1, szBuffer, sizeof(szBuffer)/sizeof(WCHAR)))
|
||||||
|
|
Loading…
Reference in a new issue