VirtualBox

Changeset 17570 in vbox for trunk


Ignore:
Timestamp:
Mar 9, 2009 12:37:00 PM (16 years ago)
Author:
vboxsync
Message:

VBoxCGlueTerm and VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME fixes.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c

    r16837 r17570  
    122122            sprintf(g_szVBoxErrMsg, "dlsym(%.80s/%.32s): %128s",
    123123                    pszBuf, VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME, dlerror());
     124        if (rc != 0)
     125            dlclose(g_hVBoxXPCOMC);
     126        g_hVBoxXPCOMC = NULL;
    124127    }
    125128    else
     
    147150     * If the user specifies the location, try only that.
    148151     */
    149 
    150152    const char *pszHome = getenv("VBOX_APP_HOME");
    151153    if (pszHome)
     
    155157     * Try the known standard locations.
    156158     */
    157 
    158159#if defined(__gnu__linux__) || defined(__linux__)
    159160    if (tryLoadOne("/opt/VirtualBox", pszMsgPrefix) == 0)
     
    176177     * Finally try the dynamic linker search path.
    177178     */
    178 
    179179    if (tryLoadOne(NULL, pszMsgPrefix) == 0)
    180180        return 0;
     
    192192void VBoxCGlueTerm(void)
    193193{
    194     /* later */
     194    if (g_hVBoxXPCOMC)
     195    {
     196        dlclose(g_hVBoxXPCOMC);
     197        g_hVBoxXPCOMC = NULL;
     198    }
     199    g_pVBoxFuncs = NULL;
    195200}
    196201
  • trunk/src/VBox/Main/cbinding/xpcidl.xsl

    r17338 r17570  
    603603
    604604/** The symbol name of VBoxGetXPCOMCFunctions. */
    605 #if defined(__APPLE__) || defined(__OS2__)
     605#if defined(__OS2__)
    606606# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME   "_VBoxGetXPCOMCFunctions"
    607607#else
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