Changeset 107838 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 17, 2025 10:31:14 AM (3 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp
r106061 r107838 409 409 static RTEXITCODE handleNetAdd(HandlerArg *a) 410 410 { 411 HRESULT hrc = S_OK;412 413 411 HOSTONLYNETOPT options; 414 hrc = createUpdateHostOnlyNetworkParse(a, options); 412 RTEXITCODE const rcExitcode = createUpdateHostOnlyNetworkParse(a, options); 413 AssertRCReturn(rcExitcode, rcExitcode); 415 414 416 415 ComPtr<IVirtualBox> pVirtualBox = a->virtualBox; … … 426 425 return errorArgument(HostOnly::tr("The --upper-ip parameter must be specified")); 427 426 427 HRESULT hrc; 428 428 CHECK_ERROR2_RET(hrc, pVirtualBox, 429 429 CreateHostOnlyNetwork(options.bstrNetworkName.raw(), hostOnlyNetwork.asOutParam()), … … 434 434 static RTEXITCODE handleNetModify(HandlerArg *a) 435 435 { 436 HRESULT hrc = S_OK;437 438 436 HOSTONLYNETOPT options; 439 hrc = createUpdateHostOnlyNetworkParse(a, options); 437 RTEXITCODE const rcExitcode = createUpdateHostOnlyNetworkParse(a, options); 438 AssertRCReturn(rcExitcode, rcExitcode); 440 439 441 440 ComPtr<IVirtualBox> pVirtualBox = a->virtualBox; 442 441 ComPtr<IHostOnlyNetwork> hostOnlyNetwork; 443 442 443 HRESULT hrc; 444 444 if (options.bstrNetworkName.isNotEmpty()) 445 445 {
Note:
See TracChangeset
for help on using the changeset viewer.