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

Unified Diff: base/win/pe_image_test.cc

Issue 1350493002: Check for CloseHandle failures even when not debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code tweaks Created 5 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
« base/win/object_watcher_unittest.cc ('K') | « base/win/object_watcher_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/pe_image_test.cc
diff --git a/base/win/pe_image_test.cc b/base/win/pe_image_test.cc
index e374598ada750f1d41907807a173f4ba933d18e7..24bf6d2996b3cf66062a132117b2e3d858a31fbb 100644
--- a/base/win/pe_image_test.cc
+++ b/base/win/pe_image_test.cc
@@ -25,7 +25,7 @@ __declspec(dllexport) void ExportFunc2() {
// Call into kernel32.dll.
HANDLE h = CreateEvent(NULL, FALSE, FALSE, NULL);
- CloseHandle(h);
+ CHECK(::CloseHandle(h));
rvargas (doing something else) 2015/09/16 02:09:12 This is never executed, so I would not change this
brucedawson 2015/09/16 18:29:00 Ignore this change. I'm reverting it. The CHECK do
brucedawson 2015/09/16 18:29:00 Done.
}
} // extern "C"
« base/win/object_watcher_unittest.cc ('K') | « base/win/object_watcher_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698