From a7a50e03152bb13ad8d07daf2533c3d73cb1e74e Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Sun, 28 Dec 2008 16:02:29 -0800 Subject: [PATCH] winmm: Don't crash on PlaySound(... SND_ALIAS_ID). --- dlls/winmm/playsound.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c index 2979d77329e..1ca0728384d 100644 --- a/dlls/winmm/playsound.c +++ b/dlls/winmm/playsound.c @@ -446,6 +446,11 @@ static BOOL MULTIMEDIA_PlaySound(const void* pszSound, HMODULE hmod, DWORD fdwSo if ((fdwSound & (SND_NOWAIT | SND_NOSTOP)) && PlaySoundList != NULL) return FALSE; + if ((fdwSound & SND_ALIAS_ID) == SND_ALIAS_ID) { + FIXME("SND_ALIAS_ID not supported\n"); + return FALSE; + } + /* alloc internal structure, if we need to play something */ if (pszSound && !(fdwSound & SND_PURGE)) {