Commit 67c68846 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32: fix recursive locking imbalance

parent a137e3fe
...@@ -376,8 +376,11 @@ void vlc_mutex_unlock (vlc_mutex_t *p_mutex) ...@@ -376,8 +376,11 @@ void vlc_mutex_unlock (vlc_mutex_t *p_mutex)
#elif defined( WIN32 ) #elif defined( WIN32 )
if (p_mutex->recursive) if (p_mutex->recursive)
{ {
if (--p_mutex->recursion != 0) if (p_mutex->recursion != 0)
{
p_mutex->recursion--;
return; /* We still own this mutex */ return; /* We still own this mutex */
}
/* We release the mutex */ /* We release the mutex */
DWORD self = GetCurrentThreadId (); DWORD self = GetCurrentThreadId ();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment