From d07019d8b82bb713220c3c0cfdfde29dc4146227 Mon Sep 17 00:00:00 2001 From: "racham%netscape.com" Date: Tue, 11 Jan 2000 23:07:22 +0000 Subject: [PATCH] Fixing bug 16673. User50 directory on windows will now lives 1 level up fromthe executable. r=ssu git-svn-id: svn://10.0.0.236/trunk@57457 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/appshell/src/nsFileLocations.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/xpfe/appshell/src/nsFileLocations.cpp b/mozilla/xpfe/appshell/src/nsFileLocations.cpp index c9efcdf3bc4..6f7010b7226 100644 --- a/mozilla/xpfe/appshell/src/nsFileLocations.cpp +++ b/mozilla/xpfe/appshell/src/nsFileLocations.cpp @@ -189,10 +189,9 @@ static void GetDefaultUserProfileRoot(nsFileSpec& outSpec) #elif defined(XP_PC) // set its directory an aunt of the executable. nsSpecialSystemDirectory cwd(nsSpecialSystemDirectory::OS_CurrentProcessDirectory); - // That's "program files\Netscape\Communicator\Program" - nsFileSpec parent; - cwd.GetParent(parent); // "program files\Netscape\Communicator" - parent.GetParent(cwd); // "program files\Netscape\" + + // Users50 directory is kept 1 level above the executable directory. + cwd.GetParent(cwd); cwd += "Users50"; if (!cwd.Exists())