gthread-win32: trivial condition change

Make another do-nothing change to the SRWLock emulation.
This commit is contained in:
Ryan Lortie 2011-09-20 00:05:34 -04:00
parent 391aea32f3
commit 9f42e3be1b

View 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