Index: snapshot/win/process_reader_win.cc |
diff --git a/snapshot/win/process_reader_win.cc b/snapshot/win/process_reader_win.cc |
index 373124d61930f04e3fed8c82f6f0735362eaef7f..f3b632376a8b534672cbff5cfb72218818e83bf9 100644 |
--- a/snapshot/win/process_reader_win.cc |
+++ b/snapshot/win/process_reader_win.cc |
@@ -136,7 +136,7 @@ bool FillThreadContextAndSuspendCount(HANDLE thread_handle, |
CaptureContext(&thread->context.native); |
} else { |
DWORD previous_suspend_count = SuspendThread(thread_handle); |
- if (previous_suspend_count == -1) { |
+ if (previous_suspend_count == static_cast<DWORD>(-1)) { |
Mark Mentovai
2015/12/08 22:05:59
-1u?
Nico
2015/12/08 22:07:12
MSDN says that SuspendThread returns "(DWORD)-1" o
|
PLOG(ERROR) << "SuspendThread"; |
return false; |
} |