mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix command line initialization on windows
This commit is contained in:
parent
03dcbb1ee5
commit
312e78c79d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user