mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Fixed PlaySound to start its thread the right way.
This commit is contained in:
parent
f172d64a40
commit
8db79c2c57
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue