mciwave: Fix bad free in MCI_SendCommandAsync (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
68c3ac7680
commit
c814fbe1df
|
@ -124,7 +124,7 @@ static DWORD MCI_SendCommandAsync(UINT wDevID, async_cmd cmd, DWORD_PTR dwParam1
|
||||||
WARN("Couldn't allocate thread for async command handling, sending synchronously\n");
|
WARN("Couldn't allocate thread for async command handling, sending synchronously\n");
|
||||||
if (handles[1]) CloseHandle(handles[1]);
|
if (handles[1]) CloseHandle(handles[1]);
|
||||||
sca->evt = NULL;
|
sca->evt = NULL;
|
||||||
return MCI_SCAStarter(&sca);
|
return MCI_SCAStarter(sca);
|
||||||
}
|
}
|
||||||
|
|
||||||
SetThreadPriority(handles[0], THREAD_PRIORITY_TIME_CRITICAL);
|
SetThreadPriority(handles[0], THREAD_PRIORITY_TIME_CRITICAL);
|
||||||
|
|
Loading…
Reference in New Issue