diff --git a/client/crashpad_client_win.cc b/client/crashpad_client_win.cc index 6f93f7ae..0eee1857 100644 --- a/client/crashpad_client_win.cc +++ b/client/crashpad_client_win.cc @@ -546,7 +546,7 @@ void RegisterHandlers() { // expect it to cause a crash dump. This will only work when the abort() // that's called in client code is the same (or has the same behavior) as the // one in use here. - _crt_signal_t rv = signal(SIGABRT, HandleAbortSignal); + void (*rv)(int) = signal(SIGABRT, HandleAbortSignal); DCHECK_NE(rv, SIG_ERR); } diff --git a/handler/win/crashy_signal.cc b/handler/win/crashy_signal.cc index 634bce8c..8caa6259 100644 --- a/handler/win/crashy_signal.cc +++ b/handler/win/crashy_signal.cc @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include #include #include #include #include "base/logging.h" -#include "base/strings/utf_string_conversions.h" #include "client/crashpad_client.h" namespace crashpad { @@ -52,8 +52,7 @@ int CrashySignalMain(int argc, wchar_t* argv[]) { return EXIT_FAILURE; } } else { - LOG(ERROR) << "Usage: " << base::UTF16ToUTF8(argv[0]) - << " main|background"; + fprintf(stderr, "Usage: %ls main|background\n", argv[0]); return EXIT_FAILURE; }