summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/win/scoped_handle.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/win/scoped_handle.cc b/base/win/scoped_handle.cc
index 034f6a7..33a8aa5 100644
--- a/base/win/scoped_handle.cc
+++ b/base/win/scoped_handle.cc
@@ -40,11 +40,9 @@ typedef base::internal::LockImpl NativeLock;
base::LazyInstance<NativeLock>::Leaky g_lock = LAZY_INSTANCE_INITIALIZER;
bool CloseHandleWrapper(HANDLE handle) {
- if (::CloseHandle(handle))
- return true;
-
- NOTREACHED();
- return false;
+ if (!::CloseHandle(handle))
+ CHECK(false);
+ return true;
}
// Simple automatic locking using a native critical section so it supports