Commit 05bf8497 authored by Steve Lhomme's avatar Steve Lhomme Committed by Rémi Denis-Courmont

win32: assert when VLC_CANCEL_ADDR_SET has another address already set

in par with the assert in VLC_CANCEL_ADDR_CLEAR but we can tell who's guilty
Signed-off-by: Rémi Denis-Courmont's avatarRémi Denis-Courmont <remi@remlab.net>
parent d0fd9a09
......@@ -670,6 +670,7 @@ void vlc_control_cancel (int cmd, ...)
void *addr = va_arg(ap, void *);
EnterCriticalSection(&th->wait.lock);
assert(th->wait.addr == NULL);
th->wait.addr = addr;
LeaveCriticalSection(&th->wait.lock);
break;
......
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