VirtualBox

Changeset 30168 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jun 11, 2010 5:47:46 PM (15 years ago)
Author:
vboxsync
Message:

forward-port r62601: webservice: don't throw SOAP exceptions and return 0 if an API return code is available

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r29814 r30168  
    915915    // allocated our own soap fault struct
    916916    _vbox__RuntimeFault *ex = soap_new__vbox__RuntimeFault(soap, 1);
    917     ex->resultCode = info.getResultCode();
     917    // some old vbox methods return errors without setting an error in the error info,
     918    // so use the error info code if it's set and the HRESULT from the method otherwise
     919    if (S_OK == (ex->resultCode = info.getResultCode()))
     920        ex->resultCode = apirc;
    918921    ex->text = ConvertComString(info.getText());
    919922    ex->component = ConvertComString(info.getComponent());
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