mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
gthread-win32: trivial condition change
Make another do-nothing change to the SRWLock emulation.
This commit is contained in:
parent
391aea32f3
commit
9f42e3be1b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user