Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11556)

Unified Diff: chrome_frame/update_launcher.cc

Issue 10991052: Miscellaneous tiny cleanups done while converting files to use ScopedCOMInitializer, pulled out sep… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome_frame/update_launcher.cc
===================================================================
--- chrome_frame/update_launcher.cc (revision 158860)
+++ chrome_frame/update_launcher.cc (working copy)
@@ -21,13 +21,9 @@
// exit code, or kLaunchFailureExitCode if an error occurs in the waiting.
DWORD WaitForProcessExitCode(HANDLE handle) {
DWORD exit_code = 0;
-
- DWORD wait_result = ::WaitForSingleObject(handle, INFINITE);
-
- if (wait_result == WAIT_OBJECT_0 && ::GetExitCodeProcess(handle, &exit_code))
- return exit_code;
-
- return kLaunchFailureExitCode;
+ return ((::WaitForSingleObject(handle, INFINITE) == WAIT_OBJECT_0) &&
+ ::GetExitCodeProcess(handle, &exit_code)) ?
+ exit_code : kLaunchFailureExitCode;
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698