Index: base/debug_on_start.cc |
diff --git a/base/debug_on_start.cc b/base/debug_on_start.cc |
index c7d414965e07279bbfb5699945ef78eddc740532..9011ca200eccd6611e31802d757dbcb508993cc2 100644 |
--- a/base/debug_on_start.cc |
+++ b/base/debug_on_start.cc |
@@ -16,8 +16,12 @@ |
// The code is not that bright and will find things like ---argument or |
// /-/argument. |
// Note: command_line is non-destructively modified. |
-bool DebugOnStart::FindArgument(wchar_t* command_line, const wchar_t* argument) |
+bool DebugOnStart::FindArgument(wchar_t* command_line, const char* argument_c) |
{ |
+ wchar_t argument[50]; |
+ for (int i = 0; argument_c[i]; ++i) |
+ argument[i] = argument_c[i]; |
+ |
int argument_len = lstrlen(argument); |
int command_line_len = lstrlen(command_line); |
while (command_line_len > argument_len) { |