[vlc-devel] commit: Win32: fix recursive locking imbalance ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Sep 7 20:30:43 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Sep 7 21:33:39 2008 +0300| [67c68846205ce26fe0915a2415f13959df74fdf6] | committer: Rémi Denis-Courmont
Win32: fix recursive locking imbalance
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=67c68846205ce26fe0915a2415f13959df74fdf6
---
src/misc/threads.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/src/misc/threads.c b/src/misc/threads.c
index 13ff3cc..795d978 100644
--- a/src/misc/threads.c
+++ b/src/misc/threads.c
@@ -376,8 +376,11 @@ void vlc_mutex_unlock (vlc_mutex_t *p_mutex)
#elif defined( WIN32 )
if (p_mutex->recursive)
{
- if (--p_mutex->recursion != 0)
+ if (p_mutex->recursion != 0)
+ {
+ p_mutex->recursion--;
return; /* We still own this mutex */
+ }
/* We release the mutex */
DWORD self = GetCurrentThreadId ();
More information about the vlc-devel
mailing list