mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
Fixed PlaySound to start its thread the right way.
This commit is contained in:
parent
f172d64a40
commit
8db79c2c57
@ -348,14 +348,14 @@ BOOL32 WINAPI PlaySound32A(LPCSTR pszSound, HMODULE32 hmod, DWORD fdwSound)
|
||||
|
||||
if (PlaySound_hThread == 0) { /* This is the first time they called us */
|
||||
DWORD id;
|
||||
if ((PlaySound_hThread = CreateThread(NULL, 0, PlaySound_Thread, 0, 0, &id)) == 0)
|
||||
return FALSE;
|
||||
if ((PlaySound_hReadyEvent = CreateEvent32A(NULL, TRUE, FALSE, NULL)) == 0)
|
||||
return FALSE;
|
||||
if ((PlaySound_hMiddleEvent = CreateEvent32A(NULL, FALSE, FALSE, NULL)) == 0)
|
||||
return FALSE;
|
||||
if ((PlaySound_hPlayEvent = CreateEvent32A(NULL, FALSE, FALSE, NULL)) == 0)
|
||||
return FALSE;
|
||||
if ((PlaySound_hThread = CreateThread(NULL, 0, PlaySound_Thread, 0, 0, &id)) == 0)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* FIXME? I see no difference between SND_WAIT and SND_NOSTOP ! */
|
||||
|
Loading…
Reference in New Issue
Block a user