Changeset 18853 in vbox
- Timestamp:
- Apr 9, 2009 8:16:16 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 45868
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c
r18244 r18853 69 69 /** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/dll. */ 70 70 PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions = NULL; 71 /** boolean for checking if the VBOX_APP_HOME is already set by the users */ 72 int g_bVAHSet = 0; 71 73 72 74 … … 103 105 * Then resolve and call the function table getter. 104 106 */ 105 setenv("VBOX_APP_HOME", pszHome, 0 /* no need to overwrite */); 107 if (!g_bVAHSet) 108 { 109 /* Override it as we know that user didn't set it 110 * and that we only did it in previous iteration 111 */ 112 setenv("VBOX_APP_HOME", pszHome, 1); 113 } 106 114 g_hVBoxXPCOMC = dlopen(szBuf, RTLD_NOW | RTLD_LOCAL); 107 115 if (g_hVBoxXPCOMC) … … 155 163 const char *pszHome = getenv("VBOX_APP_HOME"); 156 164 if (pszHome) 165 { 166 g_bVAHSet = 1; 157 167 return tryLoadOne(pszHome); 168 } 158 169 159 170 /*
Note:
See TracChangeset
for help on using the changeset viewer.