VirtualBox

Changeset 107838 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jan 17, 2025 10:31:14 AM (3 weeks ago)
Author:
vboxsync
Message:

src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp: Fixed warnings found by Parfait (unused assignment). jiraref:VBP-1424

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp

    r106061 r107838  
    409409static RTEXITCODE handleNetAdd(HandlerArg *a)
    410410{
    411     HRESULT hrc = S_OK;
    412 
    413411    HOSTONLYNETOPT options;
    414     hrc = createUpdateHostOnlyNetworkParse(a, options);
     412    RTEXITCODE const rcExitcode = createUpdateHostOnlyNetworkParse(a, options);
     413    AssertRCReturn(rcExitcode, rcExitcode);
    415414
    416415    ComPtr<IVirtualBox> pVirtualBox = a->virtualBox;
     
    426425        return errorArgument(HostOnly::tr("The --upper-ip parameter must be specified"));
    427426
     427    HRESULT hrc;
    428428    CHECK_ERROR2_RET(hrc, pVirtualBox,
    429429                     CreateHostOnlyNetwork(options.bstrNetworkName.raw(), hostOnlyNetwork.asOutParam()),
     
    434434static RTEXITCODE handleNetModify(HandlerArg *a)
    435435{
    436     HRESULT hrc = S_OK;
    437 
    438436    HOSTONLYNETOPT options;
    439     hrc = createUpdateHostOnlyNetworkParse(a, options);
     437    RTEXITCODE const rcExitcode = createUpdateHostOnlyNetworkParse(a, options);
     438    AssertRCReturn(rcExitcode, rcExitcode);
    440439
    441440    ComPtr<IVirtualBox> pVirtualBox = a->virtualBox;
    442441    ComPtr<IHostOnlyNetwork> hostOnlyNetwork;
    443442
     443    HRESULT hrc;
    444444    if (options.bstrNetworkName.isNotEmpty())
    445445    {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette