VirtualBox

Changeset 35330 in vbox for trunk/src


Ignore:
Timestamp:
Dec 24, 2010 6:05:33 PM (14 years ago)
Author:
vboxsync
Message:

VBoxManage: fixed segmentation fault when removing non-existent host-only interface

File:
1 edited

Legend:

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

    r35317 r35330  
    9797
    9898    ComPtr<IHost> host;
    99     CHECK_ERROR(a->virtualBox, COMGETTER(Host)(host.asOutParam()));
     99    CHECK_ERROR_RET(a->virtualBox, COMGETTER(Host)(host.asOutParam()), 1);
    100100
    101101    ComPtr<IHostNetworkInterface> hif;
    102     CHECK_ERROR(host, FindHostNetworkInterfaceByName(name.raw(), hif.asOutParam()));
     102    CHECK_ERROR_RET(host, FindHostNetworkInterfaceByName(name.raw(), hif.asOutParam()), 1);
    103103
    104104    Bstr guid;
    105     CHECK_ERROR(hif, COMGETTER(Id)(guid.asOutParam()));
     105    CHECK_ERROR_RET(hif, COMGETTER(Id)(guid.asOutParam()), 1);
    106106
    107107    ComPtr<IProgress> progress;
    108     CHECK_ERROR(host, RemoveHostOnlyNetworkInterface(guid.raw(), progress.asOutParam()));
     108    CHECK_ERROR_RET(host, RemoveHostOnlyNetworkInterface(guid.raw(), progress.asOutParam()), 1);
    109109
    110110    rc = showProgress(progress);
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