VirtualBox

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


Ignore:
Timestamp:
Mar 7, 2007 10:12:59 AM (18 years ago)
Author:
vboxsync
Message:

don't segfault if VBoxXPCOMBase.xpt cannot be found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp

    r1 r1295  
    5454    nsXPTCMiniVariant* dispatchParams = NULL;
    5555    nsIInterfaceInfo* iface_info = NULL;
    56     const nsXPTMethodInfo* info;
     56    const nsXPTMethodInfo* info = NULL;
    5757    PRUint8 paramCount;
    5858    PRUint8 i;
     
    6666    iface_info->GetMethodInfo(PRUint16(methodIndex), &info);
    6767    NS_ASSERTION(info,"no interface info");
     68
     69#ifdef VBOX
     70    if (!info)
     71        return result;
     72#endif
    6873
    6974    paramCount = info->GetParamCount();
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