Lowercase the program name in Startup, not in AddBrowserInstance. Fixes xremote for Thunderbird (bug 261315), r+sr=blizzard, a=chofmann.

This commit is contained in:
bryner%brianryner.com 2004-09-24 21:46:04 +00:00
Родитель 195c8e1b7b
Коммит 6daf11ebaf
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -107,6 +107,9 @@ XRemoteService::Startup(const char *aProgram)
mProgram.Assign(aProgram);
// Normalize program names to lowercase.
ToLowerCase(mProgram);
mRunning = PR_TRUE;
if (mNumWindows == 0)
CreateProxyWindow();
@ -419,11 +422,9 @@ XRemoteService::AddBrowserInstance(nsIDOMWindowInternal *aBrowser)
if (profile.Length())
profileTmp = profile.get();
// Normalize program names to lower case and make sure it actually
// has a value.
ToLowerCase(mProgram);
// Make sure we actually have a name.
const char *programTmp = NULL;
if (mProgram.Length())
if (!mProgram.IsEmpty())
programTmp = mProgram.get();
nsresult rv;