Dan Kegel : winmm: Don't crash on PlaySound(... SND_ALIAS_ID).

Alexandre Julliard julliard at winehq.org
Mon Dec 29 08:47:53 CST 2008


Module: wine
Branch: master
Commit: a7a50e03152bb13ad8d07daf2533c3d73cb1e74e
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a7a50e03152bb13ad8d07daf2533c3d73cb1e74e

Author: Dan Kegel <dank at kegel.com>
Date:   Sun Dec 28 16:02:29 2008 -0800

winmm: Don't crash on PlaySound(... SND_ALIAS_ID).

---

 dlls/winmm/playsound.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c
index 2979d77..1ca0728 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))
     {




More information about the wine-cvs mailing list