projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
391aea3
)
gthread-win32: trivial condition change
author
Ryan Lortie
<desrt@desrt.ca>
Tue, 20 Sep 2011 04:05:34 +0000
(
00:05
-0400)
committer
Ryan 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
patch
|
blob
|
history
diff --git
a/glib/gthread-win32.c
b/glib/gthread-win32.c
index
1bc6364
..
89d8f11
100644
(file)
--- a/
glib/gthread-win32.c
+++ b/
glib/gthread-win32.c
@@
-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