gthread-win32: trivial condition change
authorRyan Lortie <desrt@desrt.ca>
Tue, 20 Sep 2011 04:05:34 +0000 (00:05 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 21 Sep 2011 20:06:56 +0000 (16:06 -0400)
Make another do-nothing change to the SRWLock emulation.

glib/gthread-win32.c

index 1bc6364..89d8f11 100644 (file)
@@ -585,7 +585,10 @@ g_thread_xp_TryAcquireSRWLockExclusive (gpointer mutex)
 {
   GThreadSRWLock *lock = g_thread_xp_get_srwlock (mutex);
 
-  return TryEnterCriticalSection (&lock->writer_lock);
+  if (!TryEnterCriticalSection (&lock->writer_lock))
+    return FALSE;
+
+  return TRUE;
 }
 
 static void __stdcall