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

Unified Diff: base/memory/shared_memory_win.cc

Issue 1350493002: Check for CloseHandle failures even when not debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DCHECK to CHECK 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
Index: base/memory/shared_memory_win.cc
diff --git a/base/memory/shared_memory_win.cc b/base/memory/shared_memory_win.cc
index 5f706fe648598642584903f39a5aa40786acc88d..285d9ac3239b35bb663bbe6588e543f86026f152 100644
--- a/base/memory/shared_memory_win.cc
+++ b/base/memory/shared_memory_win.cc
@@ -85,7 +85,8 @@ SharedMemoryHandle SharedMemory::NULLHandle() {
// static
void SharedMemory::CloseHandle(const SharedMemoryHandle& handle) {
DCHECK(handle != NULL);
- ::CloseHandle(handle);
+ const BOOL result = ::CloseHandle(handle);
+ CHECK(result);
Lei Zhang 2015/09/22 08:03:30 I know this will probably reland as soon as I fix
}
// static
« no previous file with comments | « base/files/file_util_win.cc ('k') | base/process/kill_win.cc » ('j') | base/sync_socket_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698