VirtualBox

Ignore:
Timestamp:
Apr 17, 2020 11:41:46 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137312
Message:

HostDrivers/VBoxNetCfg.cpp: VC++ 14.1 adjustments. bugref:8489

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp

    r82968 r83786  
    17391739                        if (SUCCEEDED(hr))
    17401740                        {
    1741                             VARIANT varReturnValue;
    17421741                            hr = pOutParams->Get(bstr_t(L"ReturnValue"), 0, &varReturnValue, NULL, 0);
    17431742                            Assert(SUCCEEDED(hr));
     
    17451744                            {
    17461745            //                    Assert(varReturnValue.vt == VT_UINT);
    1747                                 int winEr = varReturnValue.uintVal;
     1746                                winEr = varReturnValue.uintVal;
    17481747                                if (winEr == 0)
    17491748                                    hr = S_OK;
     
    25232522    /* This is the GUID for the network connections folder. It is constant.
    25242523     * {7007ACC7-3202-11D1-AAD2-00805FC1270E} */
    2525     const GUID CLSID_NetworkConnections = {
     2524    const GUID MY_CLSID_NetworkConnections = {
    25262525        0x7007ACC7, 0x3202, 0x11D1, {
    25272526            0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E
     
    25402539
    25412540    /* Create an instance of the network connections folder. */
    2542     hr = CoCreateInstance(CLSID_NetworkConnections, NULL,
     2541    hr = CoCreateInstance(MY_CLSID_NetworkConnections, NULL,
    25432542                          CLSCTX_INPROC_SERVER, IID_IShellFolder,
    25442543                          reinterpret_cast<LPVOID *>(&pShellFolder));
     
    31393138        while (TRUE)
    31403139        {
    3141             BOOL ret;
    3142 
    3143             ret = SetupDiEnumDriverInfo (hDeviceInfo, &DeviceInfoData,
    3144                                          SPDIT_CLASSDRIVER, index, &DriverInfoData);
    3145 
    3146             /* if the function failed and GetLastError() returned
     3140            BOOL fRet = SetupDiEnumDriverInfo(hDeviceInfo, &DeviceInfoData, SPDIT_CLASSDRIVER, index, &DriverInfoData);
     3141
     3142            /* if the function failed and GetLastError() returns
    31473143             * ERROR_NO_MORE_ITEMS, then we have reached the end of the
    31483144             * list.  Otherwise there was something wrong with this
    31493145             * particular driver. */
    3150             if (!ret)
     3146            if (!fRet)
    31513147            {
    31523148                if (GetLastError() == ERROR_NO_MORE_ITEMS)
    31533149                    break;
    3154                 else
    3155                 {
    3156                     index++;
    3157                     continue;
    3158                 }
     3150                index++;
     3151                continue;
    31593152            }
    31603153
Note: See TracChangeset for help on using the changeset viewer.

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