winmm: sndPlaySound can play resource sounds.

This commit is contained in:
Aric Stewart 2015-04-01 10:11:24 -05:00 committed by Alexandre Julliard
parent d0d7c47b65
commit 74471e857c
1 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ BOOL WINAPI PlaySoundW(LPCWSTR pszSoundW, HMODULE hmod, DWORD fdwSound)
*/ */
BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags) BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
{ {
uFlags &= SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC; uFlags &= SND_RESOURCE|SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
return MULTIMEDIA_PlaySound(pszSoundA, 0, uFlags, FALSE); return MULTIMEDIA_PlaySound(pszSoundA, 0, uFlags, FALSE);
} }
@ -575,7 +575,7 @@ BOOL WINAPI sndPlaySoundA(LPCSTR pszSoundA, UINT uFlags)
*/ */
BOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT uFlags) BOOL WINAPI sndPlaySoundW(LPCWSTR pszSound, UINT uFlags)
{ {
uFlags &= SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC; uFlags &= SND_RESOURCE|SND_ALIAS_ID|SND_FILENAME|SND_ASYNC|SND_LOOP|SND_MEMORY|SND_NODEFAULT|SND_NOSTOP|SND_SYNC;
return MULTIMEDIA_PlaySound(pszSound, 0, uFlags, TRUE); return MULTIMEDIA_PlaySound(pszSound, 0, uFlags, TRUE);
} }