From 8fa989cb2c7834dd83109e7caffece60b94fd6b3 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Sun, 5 May 2019 14:11:04 +0000 Subject: [PATCH] Fix Windows build --- extension/extension.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extension/extension.cpp b/extension/extension.cpp index ccb3790..df92eeb 100644 --- a/extension/extension.cpp +++ b/extension/extension.cpp @@ -1192,8 +1192,9 @@ bool Accelerator::SDK_OnLoad(char *error, size_t maxlength, bool late) wchar_t *buf = new wchar_t[sizeof(dumpStoragePath)]; size_t num_chars = mbstowcs(buf, dumpStoragePath, sizeof(dumpStoragePath)); - handler = new google_breakpad::ExceptionHandler(std::wstring(buf, num_chars), NULL, dumpCallback, NULL, - google_breakpad::ExceptionHandler::HANDLER_ALL, MiniDumpWithUnloadedModules | MiniDumpWithFullMemoryInfo, NULL, NULL); + handler = new google_breakpad::ExceptionHandler( + std::wstring(buf, num_chars), NULL, dumpCallback, NULL, google_breakpad::ExceptionHandler::HANDLER_ALL, + static_cast(MiniDumpWithUnloadedModules | MiniDumpWithFullMemoryInfo), NULL, NULL); vectoredHandler = AddVectoredExceptionHandler(0, BreakpadVectoredHandler);