Fix command line initialization on windows

This commit is contained in:
Ben Turner 2009-11-04 17:34:22 -08:00
parent 03dcbb1ee5
commit 312e78c79d

View File

@ -507,7 +507,11 @@ XRE_InitCommandLine(int aArgc, char* aArgv[])
{
nsresult rv = NS_OK;
#if defined(MOZ_IPC) && !defined(OS_WIN)
#if defined(MOZ_IPC)
#if defined(OS_WIN)
CommandLine::Init(aArgc, aArgv);
#else
// these leak on error, but that's OK: we'll just exit()
char** canonArgs = new char*[aArgc];
@ -535,7 +539,7 @@ XRE_InitCommandLine(int aArgc, char* aArgv[])
delete[] canonArgs;
#endif
#endif
return rv;
}