mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-07 07:42:21 +01:00
Windows: Fix command line parsing for crash handler (issue #1995)
This commit is contained in:
parent
a56ac9782e
commit
5c160e018b
@ -96,8 +96,11 @@ int RunAsCrashpadHandler(const base::CommandLine& command_line) {
|
|||||||
}),
|
}),
|
||||||
argv.end());
|
argv.end());
|
||||||
|
|
||||||
// HandlerMain expects the first argument to be the program name.
|
#if defined(OS_MACOSX)
|
||||||
|
// HandlerMain on macOS uses the system version of getopt_long which expects
|
||||||
|
// the first argument to be the program name.
|
||||||
argv.insert(argv.begin(), command_line.GetProgram().value());
|
argv.insert(argv.begin(), command_line.GetProgram().value());
|
||||||
|
#endif
|
||||||
|
|
||||||
std::unique_ptr<char* []> argv_as_utf8(new char*[argv.size() + 1]);
|
std::unique_ptr<char* []> argv_as_utf8(new char*[argv.size() + 1]);
|
||||||
std::vector<std::string> storage;
|
std::vector<std::string> storage;
|
||||||
|
Loading…
Reference in New Issue
Block a user