VirtualBox

Ignore:
Timestamp:
Mar 26, 2019 8:11:25 AM (6 years ago)
Author:
vboxsync
Message:

NetAdp/Win: (bugref:9409) Work around host-only adapter naming issue after Windows upgrade.

File:
1 edited

Legend:

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

    r77804 r77875  
    762762            {
    763763                hrc = hif->EnableDynamicIPConfig();
    764                 LogRel(("EnableDynamicIPConfig returned 0x%x\n", hrc));
     764                if (FAILED(hrc))
     765                    LogRel(("EnableDynamicIPConfig failed with 0x%x\n", hrc));
    765766            }
    766767            else
    767768            {
    768769                hrc = hif->EnableStaticIPConfig(pInfo->strIPv4Address.raw(), pInfo->strIPv4NetMask.raw());
    769                 LogRel(("EnableStaticIpConfig returned 0x%x\n", hrc));
     770                if (FAILED(hrc))
     771                    LogRel(("EnableStaticIpConfig failed with 0x%x\n", hrc));
    770772            }
    771773# if 0
     
    774776            {
    775777                hrc = hif->EnableStaticIPConfigV6(pInfo->strIPv6Address.raw(), pInfo->uIPv6PrefixLength);
    776                 LogRel(("EnableStaticIPConfigV6 returned 0x%x\n", hrc));
     778                if (FAILED(hrc))
     779                    LogRel(("EnableStaticIPConfigV6 failed with 0x%x\n", hrc));
    777780            }
    778781# endif
     
    15421545#ifdef RT_OS_WINDOWS
    15431546        rc = i_removePersistentConfig(Utf8StrFmt("%RTuuid", &aId));
    1544         LogRel(("i_removePersistentConfig(%RTuuid) returned %d\n", &aId, r));
     1547        if (FAILED(rc))
     1548            LogRel(("i_removePersistentConfig(%RTuuid) failed with 0x%x\n", &aId, rc));
    15451549#else /* !RT_OS_WINDOWS */
    15461550        rc = m->pParent->SetExtraData(BstrFmt("HostOnly/%ls/IPAddress", name.raw()).raw(), NULL);
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