Jörg Höhle : mciseq: Fix error code path in async command execution.
Alexandre Julliard
julliard at winehq.org
Fri Feb 12 10:17:44 CST 2010
Module: wine
Branch: master
Commit: 6dadd15bdf9304e2cbe96cc1c25195d3a49b634e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6dadd15bdf9304e2cbe96cc1c25195d3a49b634e
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Thu Feb 11 18:34:14 2010 +0100
mciseq: Fix error code path in async command execution.
---
dlls/mciseq/mcimidi.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/dlls/mciseq/mcimidi.c b/dlls/mciseq/mcimidi.c
index 402b8d5..301428d 100644
--- a/dlls/mciseq/mcimidi.c
+++ b/dlls/mciseq/mcimidi.c
@@ -113,9 +113,6 @@ static DWORD CALLBACK MCI_SCAStarter(LPVOID arg)
TRACE("In thread after async command (%08x,%u,%08lx,%08lx)\n",
sca->wDevID, sca->wMsg, sca->dwParam1, sca->dwParam2);
HeapFree(GetProcessHeap(), 0, sca);
- ExitThread(ret);
- WARN("Should not happen ? what's wrong\n");
- /* should not go after this point */
return ret;
}
@@ -147,7 +144,7 @@ static DWORD MCI_SendCommandAsync(UINT wDevID, UINT wMsg, DWORD_PTR dwParam1,
if ((handle = CreateThread(NULL, 0, MCI_SCAStarter, sca, 0, NULL)) == 0) {
WARN("Couldn't allocate thread for async command handling, sending synchronously\n");
- return MCI_SCAStarter(&sca);
+ return MCI_SCAStarter(sca);
}
SetThreadPriority(handle, THREAD_PRIORITY_TIME_CRITICAL);
CloseHandle(handle);
More information about the wine-cvs
mailing list