VirtualBox

Changeset 6974 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd


Ignore:
Timestamp:
Feb 15, 2008 5:30:32 PM (17 years ago)
Author:
vboxsync
Message:

XPCOM/IPC/DConnect: Serialize/deserialize exceptions in case of warning result codes too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp

    r6920 r6974  
    24672467
    24682468  rv = completion.GetResult();
    2469   if (NS_FAILED(rv))
     2469  if (rv != NS_OK)
    24702470  {
    24712471    NS_ASSERTION(completion.ParamsLen() == 0 ||
     
    25822582    LOG(("got SETUP_REPLY: status=%x instance=%p\n", reply->status, reply->instance));
    25832583
    2584     if (NS_FAILED(reply->status))
     2584    if (reply->status != NS_OK)
    25852585    {
    25862586      mStatus = reply->status;
     
    25892589      const PRUint32 paramsLen = opLen - sizeof (DConnectSetupReply);
    25902590
    2591       NS_ASSERTION(paramsLen >= sizeof(void*),
     2591      NS_ASSERTION(paramsLen == 0 || paramsLen >= sizeof(void*),
    25922592                   "invalid nsIException serialization length");
    25932593      if (paramsLen >= sizeof(void*))
     
    35323532  writer.PutBytes(&msg, sizeof(msg));
    35333533
    3534   if (NS_FAILED(rv))
     3534  if (rv != NS_OK)
    35353535  {
    35363536    // try to fetch an nsIException possibly set by one of the setup methods
     
    37283728                          params);
    37293729
    3730   if (NS_FAILED(rv))
     3730  if (rv != NS_OK)
    37313731  {
    37323732    // try to fetch an nsIException possibly set by the method
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