Index: snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc |
diff --git a/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc b/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc |
index 1ecc18edf605c8c5fe873b4beb51658764b89d93..cf5ab9505cb8e37248aa01d68e08c34eee309e4d 100644 |
--- a/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc |
+++ b/snapshot/win/crashpad_snapshot_test_dump_without_crashing.cc |
@@ -20,15 +20,19 @@ |
#include "util/file/file_io.h" |
#include "util/win/address_types.h" |
+namespace { |
+ |
__declspec(noinline) crashpad::WinVMAddress CurrentAddress() { |
return reinterpret_cast<crashpad::WinVMAddress>(_ReturnAddress()); |
} |
-int main(int argc, char* argv[]) { |
+} // namespace |
+ |
+int wmain(int argc, wchar_t* argv[]) { |
CHECK_EQ(argc, 2); |
crashpad::CrashpadClient client; |
- CHECK(client.SetHandler(argv[1])); |
+ CHECK(client.SetHandlerIPCPipe(argv[1])); |
CHECK(client.UseHandler()); |
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE); |