VirtualBox

Changeset 40574 in vbox for trunk


Ignore:
Timestamp:
Mar 22, 2012 2:10:56 PM (13 years ago)
Author:
vboxsync
Message:

GuestCtrl: Don't set API error when no output cannot be retrieved anymore.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/GuestCtrlImpl.cpp

    r40437 r40574  
    13681368                                              0 /* Infinite timeout */,
    13691369                                              _64K, ComSafeArrayAsOutParam(aData), &rc);
    1370         if (SUCCEEDED(hr))
     1370        if (RT_SUCCESS(rc))
    13711371        {
    13721372            if (aData.size())
     
    18591859    {
    18601860        rc = E_OUTOFMEMORY;
     1861        if (pRC)
     1862            *pRC = VERR_NO_MEMORY;
    18611863    }
    18621864    return rc;
     
    21082110             * don't remove it but report back an appropriate error. */
    21092111            vrc = VERR_BROKEN_PIPE;
    2110             rc = setError(VBOX_E_IPRT_ERROR,
    2111                           Guest::tr("Guest process (PID %u) does not run anymore"), aPID);
     2112            /* Not getting any output is fine, so don't report an API error (rc)
     2113             * and only signal something through internal error code (vrc). */
    21122114        }
    21132115
     
    22712273    {
    22722274        rc = E_OUTOFMEMORY;
     2275        if (pRC)
     2276            *pRC = VERR_NO_MEMORY;
    22732277    }
    22742278    return rc;
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