Changeset 14685 in vbox for trunk/src/VBox/Main
- Timestamp:
- Nov 27, 2008 8:13:37 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r14543 r14685 1336 1336 FILE_ATTRIBUTE_NORMAL, 1337 1337 NULL); 1338 Assert(hDevice != INVALID_HANDLE_VALUE);1339 1338 if (hDevice != INVALID_HANDLE_VALUE) 1340 1339 { … … 1364 1363 else 1365 1364 { 1366 AssertBreakpoint();1367 1365 int winEr = GetLastError(); 1368 1366 LogRel(("Console::configConstructor: DeviceIoControl failed, err (0x%x), ignoring\n", winEr)); 1367 AssertBreakpoint(); 1369 1368 } 1370 1369 … … 1375 1374 int winEr = GetLastError(); 1376 1375 LogRel(("Console::configConstructor: CreateFile failed, err (0x%x), ignoring\n", winEr)); 1376 AssertBreakpoint(); 1377 1377 } 1378 1378 CoTaskMemFree(pName); -
trunk/src/VBox/Main/HostImpl.cpp
r14579 r14685 1028 1028 while( hr == S_OK ) 1029 1029 { 1030 hr = VBoxNetCfgWinGetBindingInterfaceEnum(pBp, &pEnumBi); 1031 Assert(hr == S_OK); 1032 if ( hr == S_OK ) 1030 /* S_OK == enabled, S_FALSE == disabled */ 1031 if(pBp->IsEnabled() == S_OK) 1033 1032 { 1034 hr = VBoxNetCfgWinGet FirstBindingInterface(pEnumBi, &pBi);1033 hr = VBoxNetCfgWinGetBindingInterfaceEnum(pBp, &pEnumBi); 1035 1034 Assert(hr == S_OK); 1036 while(hr == S_OK)1035 if ( hr == S_OK ) 1037 1036 { 1038 hr = pBi->GetLowerComponent( &pMpNcc);1037 hr = VBoxNetCfgWinGetFirstBindingInterface(pEnumBi, &pBi); 1039 1038 Assert(hr == S_OK); 1040 if(hr == S_OK)1039 while(hr == S_OK) 1041 1040 { 1042 vboxNetWinAddComponent(&list, pMpNcc); 1043 VBoxNetCfgWinReleaseRef( pMpNcc ); 1041 hr = pBi->GetLowerComponent( &pMpNcc ); 1042 Assert(hr == S_OK); 1043 if(hr == S_OK) 1044 { 1045 vboxNetWinAddComponent(&list, pMpNcc); 1046 VBoxNetCfgWinReleaseRef( pMpNcc ); 1047 } 1048 VBoxNetCfgWinReleaseRef(pBi); 1049 1050 hr = VBoxNetCfgWinGetNextBindingInterface(pEnumBi, &pBi); 1044 1051 } 1045 VBoxNetCfgWinReleaseRef(pBi); 1046 1047 hr = VBoxNetCfgWinGetNextBindingInterface(pEnumBi, &pBi); 1052 VBoxNetCfgWinReleaseRef(pEnumBi); 1048 1053 } 1049 VBoxNetCfgWinReleaseRef(pEnumBi);1050 1054 } 1051 1055 VBoxNetCfgWinReleaseRef(pBp);
Note:
See TracChangeset
for help on using the changeset viewer.