mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
bug 1198450 - Firefox fails to load about:home if Firefox was installed to a folder with non-Latin name r=jimm
This commit is contained in:
parent
9aa47b7280
commit
709757e7c2
@ -541,12 +541,15 @@ AddAppDirToCommandLine(std::vector<std::string>& aCmdLine)
|
||||
NS_GET_IID(nsIFile),
|
||||
getter_AddRefs(appDir));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
#if defined(XP_WIN)
|
||||
nsString path;
|
||||
MOZ_ALWAYS_TRUE(NS_SUCCEEDED(appDir->GetPath(path)));
|
||||
aCmdLine.AppendLooseValue(UTF8ToWide("-appdir"));
|
||||
std::wstring wpath = path.get();
|
||||
aCmdLine.AppendLooseValue(wpath);
|
||||
#else
|
||||
nsAutoCString path;
|
||||
MOZ_ALWAYS_TRUE(NS_SUCCEEDED(appDir->GetNativePath(path)));
|
||||
#if defined(XP_WIN)
|
||||
aCmdLine.AppendLooseValue(UTF8ToWide("-appdir"));
|
||||
aCmdLine.AppendLooseValue(UTF8ToWide(path.get()));
|
||||
#else
|
||||
aCmdLine.push_back("-appdir");
|
||||
aCmdLine.push_back(path.get());
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user