silence some warnings. closes #47
[deb_libcec.git] / src / lib / platform / threads / mutex.h
index 00953db0e0cdada4aee48de1cdf4f191a04806bb..286cc3274dd6240e73acba22886188a64553063d 100644 (file)
@@ -86,9 +86,12 @@ namespace PLATFORM
 
     inline bool Lock(void)
     {
-      MutexLock(m_mutex);
-      ++m_iLockCount;
-      return true;
+      if (MutexLock(m_mutex))
+      {
+        ++m_iLockCount;
+        return true;
+      }
+      return false;
     }
 
     inline void Unlock(void)