Changeset 28296 in vbox for trunk/src/VBox/Main/HostImpl.cpp
- Timestamp:
- Apr 14, 2010 12:11:07 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r28036 r28296 442 442 hr = pncc->GetDisplayName( &lpszName ); 443 443 Assert(hr == S_OK); 444 if (hr == S_OK)444 if (hr == S_OK) 445 445 { 446 446 Bstr name((CBSTR)lpszName); … … 631 631 &lpszApp ); 632 632 Assert(hr == S_OK); 633 if (hr == S_OK)633 if (hr == S_OK) 634 634 { 635 635 # ifdef VBOX_NETFLT_ONDEMAND_BIND … … 640 640 hr = pNc->FindComponent(L"sun_VBoxNetFlt", &pTcpIpNcc); 641 641 # ifndef VBOX_WITH_HARDENING 642 if (hr != S_OK)642 if (hr != S_OK) 643 643 { 644 644 /* TODO: try to install the netflt from here */ … … 648 648 # endif 649 649 650 if (hr == S_OK)650 if (hr == S_OK) 651 651 { 652 652 hr = VBoxNetCfgWinGetBindingPathEnum(pTcpIpNcc, EBP_BELOW, &pEnumBp); … … 659 659 { 660 660 /* S_OK == enabled, S_FALSE == disabled */ 661 if (pBp->IsEnabled() == S_OK)661 if (pBp->IsEnabled() == S_OK) 662 662 { 663 663 hr = VBoxNetCfgWinGetBindingInterfaceEnum(pBp, &pEnumBi); … … 671 671 hr = pBi->GetLowerComponent( &pMpNcc ); 672 672 Assert(hr == S_OK); 673 if (hr == S_OK)673 if (hr == S_OK) 674 674 { 675 675 ULONG uComponentStatus; 676 676 hr = pMpNcc->GetDeviceStatus(&uComponentStatus); 677 677 Assert(hr == S_OK); 678 if (hr == S_OK)678 if (hr == S_OK) 679 679 { 680 if (uComponentStatus == 0)680 if (uComponentStatus == 0) 681 681 { 682 682 vboxNetWinAddComponent(&list, pMpNcc); … … 1411 1411 std::list <ComObjPtr<HostNetworkInterface> > allList; 1412 1412 int rc = NetIfList(allList); 1413 if (RT_FAILURE(rc))1413 if (RT_FAILURE(rc)) 1414 1414 return E_FAIL; 1415 1415 … … 1421 1421 HostNetworkInterfaceType_T t; 1422 1422 HRESULT hr = (*it)->COMGETTER(InterfaceType)(&t); 1423 if (FAILED(hr))1423 if (FAILED(hr)) 1424 1424 return hr; 1425 1425 1426 if (t == type)1426 if (t == type) 1427 1427 { 1428 1428 (*it)->setVirtualBox(m->pParent);
Note:
See TracChangeset
for help on using the changeset viewer.