Index: util/win/critical_section_with_debug_info.cc |
diff --git a/util/win/critical_section_with_debug_info.cc b/util/win/critical_section_with_debug_info.cc |
index dc1a2dbaa235e08a2bf005571d626e4641d48fb0..7109849d1cc7747369ba38848f2ec5602ef5f1a9 100644 |
--- a/util/win/critical_section_with_debug_info.cc |
+++ b/util/win/critical_section_with_debug_info.cc |
@@ -28,7 +28,7 @@ BOOL CrashpadInitializeCriticalSectionEx( |
static const auto initialize_critical_section_ex = |
GET_FUNCTION_REQUIRED(L"kernel32.dll", ::InitializeCriticalSectionEx); |
bool ret = |
Mark Mentovai
2015/10/22 21:22:40
…this one can even be BOOL…
scottmg
2015/10/22 21:28:27
Done.
|
- initialize_critical_section_ex(critical_section, spin_count, flags); |
+ !!initialize_critical_section_ex(critical_section, spin_count, flags); |
if (!ret) { |
PLOG(ERROR) << "InitializeCriticalSectionEx"; |
return false; |
@@ -65,8 +65,8 @@ bool InitializeCriticalSectionWithDebugInfoIfPossible( |
return true; |
} |
- return CrashpadInitializeCriticalSectionEx( |
- critical_section, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO); |
+ return !!CrashpadInitializeCriticalSectionEx( |
Mark Mentovai
2015/10/22 21:22:40
…then you don’t need to change this.
scottmg
2015/10/22 21:28:27
Done.
|
+ critical_section, 0, RTL_CRITICAL_SECTION_FLAG_FORCE_DEBUG_INFO); |
} |
} // namespace crashpad |