VirtualBox

Changeset 18543 in vbox


Ignore:
Timestamp:
Mar 30, 2009 1:08:12 PM (15 years ago)
Author:
vboxsync
Message:

NetAdp/win: rename connection fix, remove on uninstall temporary disabled

File:
1 edited

Legend:

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

    r18375 r18543  
    17141714        INetCfgComponent     *pMpNcc;
    17151715        LPWSTR               lpszApp;
     1716        WCHAR ConnectoinName[128];
    17161717
    17171718        HRESULT hr = VBoxNetCfgWinQueryINetCfg( FALSE,
     
    17331734                    Bstr str(name);
    17341735                    str.detachTo(pName);
    1735                     WCHAR ConnectoinName[128];
    17361736                    ULONG cbBuf = sizeof(ConnectoinName);
    17371737
    17381738                    hr = VBoxNetCfgWinGenHostonlyConnectionName (name, ConnectoinName, &cbBuf);
    1739                     if(hr == S_OK)
    1740                     {
    1741                         hr = VBoxNetCfgWinRenameConnection ((GUID*)aGUID.raw(), ConnectoinName);
    1742                     }
    17431739
    17441740                    CoTaskMemFree (name);
     
    17481744            }
    17491745            VBoxNetCfgWinReleaseINetCfg(pNc, FALSE);
     1746        }
     1747
     1748        if(hr == S_OK)
     1749        {
     1750            hr = VBoxNetCfgWinRenameConnection ((GUID*)aGUID.raw(), ConnectoinName);
    17501751        }
    17511752
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