thunderbird only change. The command line handler spits back "1" as an argument if there are no arguments following command. Handle

that case accordingly, and don't try to use "1" as the actual window argument.
This commit is contained in:
scott%scott-macgregor.org 2003-07-23 21:34:53 +00:00
parent d362527df3
commit 6d892904c0

View File

@ -1126,7 +1126,7 @@ nsAppShellService::LaunchTask(const char *aParam, PRInt32 height, PRInt32 width,
rv = handler->GetCommandLineArgument(getter_Copies(cmdLineArgument));
if (NS_SUCCEEDED(rv)) {
rv = cmdLine->GetCmdLineValue(cmdLineArgument, getter_Copies(args));
if (NS_SUCCEEDED(rv) && args.get()) {
if (NS_SUCCEEDED(rv) && args.get() && strcmp(args.get(), "1")) {
nsAutoString cmdArgs; cmdArgs.AssignWithConversion(args);
rv = OpenWindow(chromeUrlForTask, cmdArgs, height, width);
}