vbox的更動 960 路徑 trunk/src/libs/xpcom18a4/xpcom
- 時間撮記:
- 2007-2-17 上午09:12:10 (18 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/libs/xpcom18a4/xpcom/glue/standalone/nsXPCOMGlue.cpp
r1 r960 111 111 112 112 xpcomLib = PR_LoadLibraryWithFlags(libSpec, PR_LD_LAZY|PR_LD_GLOBAL); 113 #ifdef __DARWIN__ 114 /* works around bundle problem. */ 115 if (!xpcomLib) { 116 const char *home = PR_GetEnv("VBOX_XPCOM_HOME"); 117 if (home) { 118 char path[PATH_MAX]; 119 snprintf(path, sizeof(path), "%s/%s", home, libSpec.value.pathname); 120 libSpec.value.pathname = path; 121 xpcomLib = PR_LoadLibraryWithFlags(libSpec, PR_LD_LAZY|PR_LD_GLOBAL); 122 } 123 } 124 #endif 113 125 if (!xpcomLib) 114 126 return NS_ERROR_FAILURE; … … 162 174 xpcomLib = nsnull; 163 175 } 164 176 165 177 memset(&xpcomFunctions, 0, sizeof(xpcomFunctions)); 166 178 return NS_OK; … … 170 182 #ifndef XPCOM_GLUE_NO_DYNAMIC_LOADING 171 183 extern "C" NS_COM nsresult 172 NS_InitXPCOM2(nsIServiceManager* *result, 184 NS_InitXPCOM2(nsIServiceManager* *result, 173 185 nsIFile* binDirectory, 174 186 nsIDirectoryServiceProvider* appFileLocationProvider) … … 442 454 } 443 455 } 444 456 445 457 #if XP_WIN32 446 // On windows, the current directory is searched before the 447 // PATH environment variable. This is a very bad thing 458 // On windows, the current directory is searched before the 459 // PATH environment variable. This is a very bad thing 448 460 // since libraries in the cwd will be picked up before 449 461 // any that are in either the application or GRE directory. … … 465 477 // Startup the XPCOM Glue that links us up with XPCOM. 466 478 nsresult rv = XPCOMGlueStartup(xpcomLocation); 467 479 468 480 if (NS_FAILED(rv)) { 469 481 NS_WARNING("gre: XPCOMGlueStartup failed");
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器