From 123b618f48569e9d47e2089d661c2f197d63d7e5 Mon Sep 17 00:00:00 2001 From: "wu@webrtc.org" Date: Sat, 6 Apr 2013 04:13:51 +0000 Subject: [PATCH] Fix a crash issue on WinXP where LoadLibrary(TEXT("Kernel32.dll")) may fail. BUG=crbug.com/226301 TBR=henrike Review URL: https://webrtc-codereview.appspot.com/1293004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@3772 4adac7df-926f-26a2-2b94-8c16560cd09d --- .../system_wrappers/source/condition_variable_native_win.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webrtc/system_wrappers/source/condition_variable_native_win.cc b/webrtc/system_wrappers/source/condition_variable_native_win.cc index d97c6fe0c..332f3c4bf 100644 --- a/webrtc/system_wrappers/source/condition_variable_native_win.cc +++ b/webrtc/system_wrappers/source/condition_variable_native_win.cc @@ -43,7 +43,7 @@ ConditionVariableWrapper* ConditionVariableNativeWin::Create() { } bool ConditionVariableNativeWin::Init() { - bool win_support_condition_variables_primitive = true; + bool win_support_condition_variables_primitive = false; if (!library) { // Native implementation is supported on Vista+. library = LoadLibrary(TEXT("Kernel32.dll")); @@ -69,8 +69,7 @@ bool ConditionVariableNativeWin::Init() { WEBRTC_TRACE( kTraceStateInfo, kTraceUtility, -1, "Loaded native condition variables"); - } else { - win_support_condition_variables_primitive = false; + win_support_condition_variables_primitive = true; } } }