VirtualBox

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


Ignore:
Timestamp:
Sep 5, 2013 9:41:48 AM (11 years ago)
Author:
vboxsync
Message:

Main: fixed a few %Rrc <--> COM error code mismatches

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/EventImpl.cpp

    r47852 r48295  
    13591359
    13601360    HRESULT rc = listener.createObject();
    1361     ComAssertMsgRet(SUCCEEDED(rc), ("Could not create wrapper object (%Rrc)", rc),
     1361    ComAssertMsgRet(SUCCEEDED(rc), ("Could not create wrapper object (%Rhrc)", rc),
    13621362                    E_FAIL);
    13631363    listener.queryInterfaceTo(aListener);
     
    13771377
    13781378    HRESULT rc = agg.createObject();
    1379     ComAssertMsgRet(SUCCEEDED(rc), ("Could not create aggregator (%Rrc)", rc),
     1379    ComAssertMsgRet(SUCCEEDED(rc), ("Could not create aggregator (%Rhrc)", rc),
    13801380                    E_FAIL);
    13811381
     
    13971397
    13981398    rc = mSource.createObject();
    1399     ComAssertMsgRet(SUCCEEDED(rc), ("Could not create source (%Rrc)", rc),
     1399    ComAssertMsgRet(SUCCEEDED(rc), ("Could not create source (%Rhrc)", rc),
    14001400                    E_FAIL);
    14011401    rc = mSource->init((IEventSource*)this);
    1402     ComAssertMsgRet(SUCCEEDED(rc), ("Could not init source (%Rrc)", rc),
     1402    ComAssertMsgRet(SUCCEEDED(rc), ("Could not init source (%Rhrc)", rc),
    14031403                    E_FAIL);
    14041404
     
    15371537
    15381538    HRESULT rc = proxy.createObject();
    1539     ComAssertMsgRet(SUCCEEDED(rc), ("Could not create proxy (%Rrc)", rc),
     1539    ComAssertMsgRet(SUCCEEDED(rc), ("Could not create proxy (%Rhrc)", rc),
    15401540                    E_FAIL);
    15411541
  • trunk/src/VBox/Main/src-server/MachineImpl.cpp

    r47991 r48295  
    36013601            // the failure may occur w/o any error info (from RPC), so provide one
    36023602            return setError(VBOX_E_VM_ERROR,
    3603                             tr("Failed to get a console object from the direct session (%Rrc)"), rc);
     3603                            tr("Failed to get a console object from the direct session (%Rhrc)"), rc);
    36043604
    36053605        ComAssertRet(!pConsoleW.isNull(), E_FAIL);
     
    36133613            // the failure may occur w/o any error info (from RPC), so provide one
    36143614            return setError(VBOX_E_VM_ERROR,
    3615                             tr("Failed to assign the machine to the session (%Rrc)"), rc);
     3615                            tr("Failed to assign the machine to the session (%Rhrc)"), rc);
    36163616        alock.acquire();
    36173617
     
    37143714            if (FAILED(rc))
    37153715                setError(VBOX_E_VM_ERROR,
    3716                          tr("Failed to assign the machine to the session (%Rrc)"), rc);
     3716                         tr("Failed to assign the machine to the session (%Rhrc)"), rc);
    37173717
    37183718            if (    SUCCEEDED(rc)
     
    37473747                    if (FAILED(rc))
    37483748                        setError(VBOX_E_VM_ERROR,
    3749                                  tr("Failed to assign the machine to the remote session (%Rrc)"), rc);
     3749                                 tr("Failed to assign the machine to the remote session (%Rhrc)"), rc);
    37503750                }
    37513751
     
    81198119        /* The failure may occur w/o any error info (from RPC), so provide one */
    81208120        return setError(VBOX_E_VM_ERROR,
    8121                         tr("Failed to assign the machine to the session (%Rrc)"), rc);
     8121                        tr("Failed to assign the machine to the session (%Rhrc)"), rc);
    81228122    }
    81238123
     
    82598259            rc = setError(E_FAIL,
    82608260                          tr("The virtual machine '%s' has terminated unexpectedly during startup (%Rrc)"),
    8261                           getName().c_str(), rc);
     8261                          getName().c_str(), vrc);
    82628262    }
    82638263
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