mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 01:18:53 +02:00
gthread-win32: trivial condition change
Make another do-nothing change to the SRWLock emulation.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user