Index: third_party/crashpad/crashpad/handler/main.cc |
diff --git a/third_party/crashpad/crashpad/handler/main.cc b/third_party/crashpad/crashpad/handler/main.cc |
index 7a169e2d896e76f4093b0310cde5f78d472f23bf..bc4ab99b671e0b8fb362e3ef2159a80ad5c67c3d 100644 |
--- a/third_party/crashpad/crashpad/handler/main.cc |
+++ b/third_party/crashpad/crashpad/handler/main.cc |
@@ -23,10 +23,18 @@ |
#if defined(OS_MACOSX) |
int main(int argc, char* argv[]) { |
- return crashpad::HandlerMain(argc, argv); |
+ return crashpad::HandlerMain(argc, argv, nullptr); |
} |
#elif defined(OS_WIN) |
+namespace { |
+ |
+int HandlerMainAdaptor(int argc, char* argv[]) { |
+ return crashpad::HandlerMain(argc, argv, nullptr); |
+} |
+ |
+} // namespace |
+ |
int APIENTRY wWinMain(HINSTANCE, HINSTANCE, wchar_t*, int) { |
- return crashpad::ToolSupport::Wmain(__argc, __wargv, crashpad::HandlerMain); |
+ return crashpad::ToolSupport::Wmain(__argc, __wargv, HandlerMainAdaptor); |
} |
#endif // OS_MACOSX |