Changeset 83786 in vbox for trunk/src/VBox/HostDrivers/VBoxNetFlt
- Timestamp:
- Apr 17, 2020 11:41:46 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137312
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetFlt/win/cfg/VBoxNetCfg.cpp
r82968 r83786 1739 1739 if (SUCCEEDED(hr)) 1740 1740 { 1741 VARIANT varReturnValue;1742 1741 hr = pOutParams->Get(bstr_t(L"ReturnValue"), 0, &varReturnValue, NULL, 0); 1743 1742 Assert(SUCCEEDED(hr)); … … 1745 1744 { 1746 1745 // Assert(varReturnValue.vt == VT_UINT); 1747 intwinEr = varReturnValue.uintVal;1746 winEr = varReturnValue.uintVal; 1748 1747 if (winEr == 0) 1749 1748 hr = S_OK; … … 2523 2522 /* This is the GUID for the network connections folder. It is constant. 2524 2523 * {7007ACC7-3202-11D1-AAD2-00805FC1270E} */ 2525 const GUID CLSID_NetworkConnections = {2524 const GUID MY_CLSID_NetworkConnections = { 2526 2525 0x7007ACC7, 0x3202, 0x11D1, { 2527 2526 0xAA, 0xD2, 0x00, 0x80, 0x5F, 0xC1, 0x27, 0x0E … … 2540 2539 2541 2540 /* Create an instance of the network connections folder. */ 2542 hr = CoCreateInstance( CLSID_NetworkConnections, NULL,2541 hr = CoCreateInstance(MY_CLSID_NetworkConnections, NULL, 2543 2542 CLSCTX_INPROC_SERVER, IID_IShellFolder, 2544 2543 reinterpret_cast<LPVOID *>(&pShellFolder)); … … 3139 3138 while (TRUE) 3140 3139 { 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 3147 3143 * ERROR_NO_MORE_ITEMS, then we have reached the end of the 3148 3144 * list. Otherwise there was something wrong with this 3149 3145 * particular driver. */ 3150 if (! ret)3146 if (!fRet) 3151 3147 { 3152 3148 if (GetLastError() == ERROR_NO_MORE_ITEMS) 3153 3149 break; 3154 else 3155 { 3156 index++; 3157 continue; 3158 } 3150 index++; 3151 continue; 3159 3152 } 3160 3153
Note:
See TracChangeset
for help on using the changeset viewer.