Browse Source

squelch windows warning

David Rose 20 years ago
parent
commit
4e4302b308
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/express/mutexWin32Impl.I

+ 1 - 1
panda/src/express/mutexWin32Impl.I

@@ -54,7 +54,7 @@ lock() {
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 INLINE bool MutexWin32Impl::
 INLINE bool MutexWin32Impl::
 try_lock() {
 try_lock() {
-  return TryEnterCriticalSection(&_lock);
+  return (TryEnterCriticalSection(&_lock) != 0);
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////