VirtualBox

Changeset 58794 in vbox for trunk/src/VBox/Installer/win


Ignore:
Timestamp:
Nov 20, 2015 1:14:13 PM (9 years ago)
Author:
vboxsync
Message:

NetAdp/win: Delayed renaming of connections, address generation fix, creation issues fixed (#7973)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/win/InstallHelper/VBoxInstallHelper.cpp

    r57358 r58794  
    10421042        {
    10431043            logStringW(hModule, L"CreateHostOnlyInterface: calling VBoxNetCfgWinCreateHostOnlyNetworkInterface");
     1044#ifdef VBOXNETCFG_DELAYEDRENAME
     1045            BSTR devId;
     1046            hr = VBoxNetCfgWinCreateHostOnlyNetworkInterface(pwszInfPath, bIsFile, &guid, &devId, NULL);
     1047#else /* !VBOXNETCFG_DELAYEDRENAME */
    10441048            hr = VBoxNetCfgWinCreateHostOnlyNetworkInterface(pwszInfPath, bIsFile, &guid, NULL, NULL);
     1049#endif /* !VBOXNETCFG_DELAYEDRENAME */
    10451050            logStringW(hModule, L"CreateHostOnlyInterface: VBoxNetCfgWinCreateHostOnlyNetworkInterface returns 0x%x", hr);
    10461051            if (SUCCEEDED(hr))
     
    10531058                if (FAILED(hr))
    10541059                    logStringW(hModule, L"CreateHostOnlyInterface: VBoxNetCfgWinEnableStaticIpConfig failed, error = 0x%x", hr);
     1060#ifdef VBOXNETCFG_DELAYEDRENAME
     1061                hr = VBoxNetCfgWinRenameHostOnlyConnection(&guid, devId, NULL);
     1062                if (FAILED(hr))
     1063                    logStringW(hModule, L"CreateHostOnlyInterface: VBoxNetCfgWinRenameHostOnlyConnection failed, error = 0x%x", hr);
     1064                SysFreeString(devId);
     1065#endif /* VBOXNETCFG_DELAYEDRENAME */
    10551066            }
    10561067            else
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