Attempting to fix osX bustage.

git-svn-id: svn://10.0.0.236/trunk@136456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%netscape.com
2003-01-16 23:57:55 +00:00
parent 6cbabb69cb
commit e205adf181

View File

@@ -270,8 +270,12 @@ char*
nsGREDirServiceProvider::GetXPCOMPath()
{
char* grePath = GetGREDirectoryPath();
if (!grePath)
return nsnull;
if (!grePath) {
grePath = PR_GetEnv(MOZILLA_FIVE_HOME);
if (!grePath) {
return nsnull;
}
}
int len = strlen(grePath);
char* xpcomPath = (char*) malloc(len + sizeof(XPCOM_DLL) + sizeof(XPCOM_FILE_PATH_SEPARATOR) + 1);