Changeset 63176 in vbox for trunk/src/VBox/Main/src-server/win
- Timestamp:
- Aug 8, 2016 2:54:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/win/NetIf-win.cpp
r62780 r63176 196 196 pInfo->enmMediumType = NETIF_T_ETHERNET; 197 197 pInfo->enmStatus = pAdapter->OperStatus == IfOperStatusUp ? NETIF_S_UP : NETIF_S_DOWN; 198 pInfo->bIsDefault = (pAdapter->IfIndex == iDefault);198 pInfo->bIsDefault = (pAdapter->IfIndex == (DWORD)iDefault); 199 199 RTStrFree(pszUuid); 200 200 break; … … 981 981 if (hr == S_OK) 982 982 { 983 Guid guidIfCopy(IfGuid); 983 984 NETIFINFO Info; 984 985 RT_ZERO(Info); 985 Info.Uuid = * (Guid(IfGuid).raw());986 rc = collectNetIfInfo(name, Guid(IfGuid), &Info, iDefaultInterface);986 Info.Uuid = *guidIfCopy.raw(); 987 rc = collectNetIfInfo(name, guidIfCopy, &Info, iDefaultInterface); 987 988 if (RT_FAILURE(rc)) 988 {989 989 LogRel(("vboxNetWinAddComponent: collectNetIfInfo() -> %Rrc\n", rc)); 990 }991 990 Log(("vboxNetWinAddComponent: adding %ls\n", lpszName)); 992 991 /* create a new object and add it to the list */ … … 1865 1864 { 1866 1865 info.enmStatus = pAdapter->OperStatus == IfOperStatusUp ? NETIF_S_UP : NETIF_S_DOWN; 1867 info.bIsDefault = (pAdapter->IfIndex == iDefault);1866 info.bIsDefault = (pAdapter->IfIndex == (DWORD)iDefault); 1868 1867 info.bDhcpEnabled = pAdapter->Flags & IP_ADAPTER_DHCP_ENABLED; 1869 1868 netIfFillInfoWithAddresses(&info, pAdapter);
Note:
See TracChangeset
for help on using the changeset viewer.