From 2ca4cf84b4dcd66ecbd0320ea0f18eb31143645f Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Fri, 14 Jan 2005 00:02:06 +0000 Subject: [PATCH] fixes bug 278307 "When GRE_HOME is set, #ifndef XP_WIN32 and #ifndef XP_UNIX we return null unexpectedly" patch by callek, r+sr=darin git-svn-id: svn://10.0.0.236/trunk@167696 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp b/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp index ccba8bce684..ac0e1781a3a 100644 --- a/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp +++ b/mozilla/xpcom/glue/standalone/nsGREDirServiceProvider.cpp @@ -304,6 +304,9 @@ GRE_GetGREPath() #elif XP_WIN32 if (!_fullpath(sGRELocation, env, MAXPATHLEN)) strcpy(sGRELocation, env); +#else + // hope for the best + strcpy(sGRELocation, env); #endif // xxxbsmedberg: it would help that other platforms had a "make absolute" function return sGRELocation;