aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows
diff options
context:
space:
mode:
authorJoshua Peraza <jperaza@chromium.org>2018-08-27 12:41:01 -0700
committerJoshua Peraza <jperaza@chromium.org>2018-08-27 19:44:50 +0000
commit21c9874722e9b0f6b788b362eda66d843d9497ec (patch)
treef79368222ca5f3b83063ac33ab0b6b12dcff2436 /src/client/windows
parentFix debug build after 16e0852 (diff)
downloadbreakpad-21c9874722e9b0f6b788b362eda66d843d9497ec.tar.xz
win: replace a while loop with a for loop
This is the recommended resolution to warning C4127. https://msdn.microsoft.com/en-us/library/6t66728h.aspx Change-Id: Ifcffe68e21d9a6383bb9aef07503cbb034caca19 Reviewed-on: https://chromium-review.googlesource.com/1191661 Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
Diffstat (limited to 'src/client/windows')
-rw-r--r--src/client/windows/handler/exception_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/windows/handler/exception_handler.cc b/src/client/windows/handler/exception_handler.cc
index c42718cb..ef736f31 100644
--- a/src/client/windows/handler/exception_handler.cc
+++ b/src/client/windows/handler/exception_handler.cc
@@ -388,7 +388,7 @@ DWORD ExceptionHandler::ExceptionHandlerThreadMain(void* lpParameter) {
assert(self->handler_start_semaphore_ != NULL);
assert(self->handler_finish_semaphore_ != NULL);
- while (true) {
+ for(;;) {
if (WaitForSingleObject(self->handler_start_semaphore_, INFINITE) ==
WAIT_OBJECT_0) {
// Perform the requested action.