VirtualBox

Ignore:
Timestamp:
Jul 25, 2012 9:32:58 AM (12 years ago)
Author:
vboxsync
Message:

Frontends/VBoxManage: better error checking, avoids a crash if the Machine object is null

File:
1 edited

Legend:

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

    r42261 r42381  
    413413
    414414    /* get the mutable session machine */
    415     a->session->COMGETTER(Machine)(machine.asOutParam());
     415    CHECK_ERROR_RET(a->session, COMGETTER(Machine)(machine.asOutParam()), 1);
    416416    machine->COMGETTER(BIOSSettings)(biosSettings.asOutParam());
    417417
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