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:
Alex Henrie 2022-04-03 21:57:45 -06:00 committed by Alexandre Julliard
parent 68c3ac7680
commit c814fbe1df
1 changed files with 1 additions and 1 deletions

View File

@ -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");
if (handles[1]) CloseHandle(handles[1]);
sca->evt = NULL;
return MCI_SCAStarter(&sca);
return MCI_SCAStarter(sca);
}
SetThreadPriority(handles[0], THREAD_PRIORITY_TIME_CRITICAL);