Changeset 85266 in vbox
- Timestamp:
- Jul 12, 2020 1:04:10 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139243
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r85260 r85266 419 419 ComPtr<IProgress> progress; 420 420 421 int r= NetIfCreateHostOnlyNetworkInterface(m->pParent,422 hif.asOutParam(),423 progress.asOutParam(),424 it->c_str());425 if (RT_FAILURE( r))426 LogRel(("failed to create %s, error ( 0x%x)\n", it->c_str(), r));421 int vrc = NetIfCreateHostOnlyNetworkInterface(m->pParent, 422 hif.asOutParam(), 423 progress.asOutParam(), 424 it->c_str()); 425 if (RT_FAILURE(vrc)) 426 LogRel(("failed to create %s, error (%Rrc)\n", it->c_str(), vrc)); 427 427 } 428 428 … … 714 714 ComPtr<IProgress> progress; 715 715 716 int rc = NetIfCreateHostOnlyNetworkInterface(m->pParent, hif.asOutParam(), progress.asOutParam(), pInfo->bstrName.raw()); 717 if (RT_FAILURE(rc)) 716 int vrc = NetIfCreateHostOnlyNetworkInterface(m->pParent, hif.asOutParam(), progress.asOutParam(), 717 pInfo->bstrName.raw()); 718 if (RT_FAILURE(vrc)) 718 719 { 719 LogRel(("Failed to create host-only adapter (% d)\n",rc));720 LogRel(("Failed to create host-only adapter (%Rrc)\n", vrc)); 720 721 hrc = E_UNEXPECTED; 721 722 break; 722 723 } 724 723 725 /* Wait for the adapter to get configured completely, before we modify IP addresses. */ 724 726 progress->WaitForCompletion(-1); … … 1421 1423 * called below grabs the VirtualBox lock. */ 1422 1424 1423 int r= NetIfCreateHostOnlyNetworkInterface(m->pParent, aHostInterface.asOutParam(), aProgress.asOutParam());1424 if (RT_SUCCESS( r))1425 int vrc = NetIfCreateHostOnlyNetworkInterface(m->pParent, aHostInterface.asOutParam(), aProgress.asOutParam()); 1426 if (RT_SUCCESS(vrc)) 1425 1427 { 1426 1428 if (aHostInterface.isNull()) … … 1428 1430 tr("Unable to create a host network interface")); 1429 1431 1430 # if !defined(RT_OS_WINDOWS)1432 # if !defined(RT_OS_WINDOWS) 1431 1433 Bstr tmpAddr, tmpMask, tmpName; 1432 1434 HRESULT hrc; … … 1453 1455 tmpMask.raw()); 1454 1456 ComAssertComRCRet(hrc, hrc); 1455 # endif /* !defined(RT_OS_WINDOWS) */1457 # endif /* !defined(RT_OS_WINDOWS) */ 1456 1458 } 1457 1459
Note:
See TracChangeset
for help on using the changeset viewer.