VirtualBox

Changeset 34653 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Dec 2, 2010 7:58:48 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68455
Message:

XPCOM: fix long-standing issue of incorrectly returning NS_ERROR_FAILED if the server has disappeared. introduced new error code as there was nothing suitable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nsError.h

    r1 r34653  
    4646 * To add error code to your module, you need to do the following:
    4747 *
    48  * 1) Add a module offset code.  Add yours to the bottom of the list 
     48 * 1) Add a module offset code.  Add yours to the bottom of the list
    4949 *    right below this comment, adding 1.
    5050 *
     
    103103 * the generic base.
    104104 */
    105 #define NS_ERROR_MODULE_GENERAL    51 
     105#define NS_ERROR_MODULE_GENERAL    51
    106106
    107107/**
     
    180180#define NS_ERROR_FAILURE                   ((nsresult) 0x80004005L)
    181181
     182/* Returned when an IPC fails */
     183#define NS_ERROR_CALL_FAILED               ((nsresult) 0x800706beL)
     184
    182185/* Returned when an unexpected error occurs */
    183186#define NS_ERROR_UNEXPECTED                ((nsresult) 0x8000ffffL)
     
    218221
    219222     #define RPC_E_INVALID_PARAMETER          _HRESULT_TYPEDEF_(0x80010010L)
    220    
     223
    221224   Errors returning this mean that the xpcom proxy code could not create a proxy for
    222225   one of the in paramaters.
     
    228231
    229232/* Returned when a proxy could not be create a proxy for one of the IN parameters
    230    This is returned only when the "real" meathod has NOT been invoked. 
     233   This is returned only when the "real" meathod has NOT been invoked.
    231234*/
    232235
     
    234237
    235238/* Returned when a proxy could not be create a proxy for one of the OUT parameters
    236    This is returned only when the "real" meathod has ALREADY been invoked. 
     239   This is returned only when the "real" meathod has ALREADY been invoked.
    237240*/
    238241
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