Fixed flags handling in sndPlaySound.
This commit is contained in:
parent
07e2634753
commit
64284a8767
|
@ -690,7 +690,7 @@ BOOL16 WINAPI PlaySound16(LPCSTR pszSound, HMODULE16 hmod, DWORD fdwSound)
|
|||
*/
|
||||
BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
|
||||
{
|
||||
uFlags &= ~(SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC);
|
||||
uFlags &= SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
|
||||
return MULTIMEDIA_PlaySound(pszSoundA, 0, uFlags, FALSE);
|
||||
}
|
||||
|
||||
|
@ -699,7 +699,7 @@ BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
|
|||
*/
|
||||
BOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT uFlags)
|
||||
{
|
||||
uFlags &= ~(SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC);
|
||||
uFlags &= SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
|
||||
return MULTIMEDIA_PlaySound(pszSound, 0, uFlags, TRUE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue