VirtualBox

Ignore:
Timestamp:
Aug 8, 2016 2:54:57 PM (8 years ago)
Author:
vboxsync
Message:

Main: warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/win/NetIf-win.cpp

    r62780 r63176  
    196196                    pInfo->enmMediumType = NETIF_T_ETHERNET;
    197197                    pInfo->enmStatus = pAdapter->OperStatus == IfOperStatusUp ? NETIF_S_UP : NETIF_S_DOWN;
    198                     pInfo->bIsDefault = (pAdapter->IfIndex == iDefault);
     198                    pInfo->bIsDefault = (pAdapter->IfIndex == (DWORD)iDefault);
    199199                    RTStrFree(pszUuid);
    200200                    break;
     
    981981        if (hr == S_OK)
    982982        {
     983            Guid guidIfCopy(IfGuid);
    983984            NETIFINFO Info;
    984985            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);
    987988            if (RT_FAILURE(rc))
    988             {
    989989                LogRel(("vboxNetWinAddComponent: collectNetIfInfo() -> %Rrc\n", rc));
    990             }
    991990            Log(("vboxNetWinAddComponent: adding %ls\n", lpszName));
    992991            /* create a new object and add it to the list */
     
    18651864                {
    18661865                    info.enmStatus = pAdapter->OperStatus == IfOperStatusUp ? NETIF_S_UP : NETIF_S_DOWN;
    1867                     info.bIsDefault = (pAdapter->IfIndex == iDefault);
     1866                    info.bIsDefault = (pAdapter->IfIndex == (DWORD)iDefault);
    18681867                    info.bDhcpEnabled = pAdapter->Flags & IP_ADAPTER_DHCP_ENABLED;
    18691868                    netIfFillInfoWithAddresses(&info, pAdapter);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette