- Timestamp:
- Mar 9, 2009 12:37:00 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/cbinding
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c
r16837 r17570 122 122 sprintf(g_szVBoxErrMsg, "dlsym(%.80s/%.32s): %128s", 123 123 pszBuf, VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME, dlerror()); 124 if (rc != 0) 125 dlclose(g_hVBoxXPCOMC); 126 g_hVBoxXPCOMC = NULL; 124 127 } 125 128 else … … 147 150 * If the user specifies the location, try only that. 148 151 */ 149 150 152 const char *pszHome = getenv("VBOX_APP_HOME"); 151 153 if (pszHome) … … 155 157 * Try the known standard locations. 156 158 */ 157 158 159 #if defined(__gnu__linux__) || defined(__linux__) 159 160 if (tryLoadOne("/opt/VirtualBox", pszMsgPrefix) == 0) … … 176 177 * Finally try the dynamic linker search path. 177 178 */ 178 179 179 if (tryLoadOne(NULL, pszMsgPrefix) == 0) 180 180 return 0; … … 192 192 void VBoxCGlueTerm(void) 193 193 { 194 /* later */ 194 if (g_hVBoxXPCOMC) 195 { 196 dlclose(g_hVBoxXPCOMC); 197 g_hVBoxXPCOMC = NULL; 198 } 199 g_pVBoxFuncs = NULL; 195 200 } 196 201 -
trunk/src/VBox/Main/cbinding/xpcidl.xsl
r17338 r17570 603 603 604 604 /** The symbol name of VBoxGetXPCOMCFunctions. */ 605 #if defined(__ APPLE__) || defined(__OS2__)605 #if defined(__OS2__) 606 606 # define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" 607 607 #else
Note:
See TracChangeset
for help on using the changeset viewer.