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
This commit is contained in:
parent
621fdbc301
commit
d07019d8b8
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user