Index: src/base/platform/mutex.cc |
diff --git a/src/base/platform/mutex.cc b/src/base/platform/mutex.cc |
index 14016058ae747920cb147b85cafe8a72c44bd556..cc459a4b56982fcfa60f686ae0c14d26c8574e47 100644 |
--- a/src/base/platform/mutex.cc |
+++ b/src/base/platform/mutex.cc |
@@ -104,7 +104,7 @@ static V8_INLINE void UnlockNativeHandle(PCRITICAL_SECTION cs) { |
static V8_INLINE bool TryLockNativeHandle(PCRITICAL_SECTION cs) { |
- return TryEnterCriticalSection(cs); |
+ return TryEnterCriticalSection(cs) != FALSE; |
} |
#endif // V8_OS_POSIX |