Jörg Höhle : winmm: PlaySound ignores SND_NOWAIT.

Alexandre Julliard julliard at winehq.org
Fri Jan 14 12:46:34 CST 2011


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

Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date:   Tue Jan 11 23:30:34 2011 +0100

winmm: PlaySound ignores SND_NOWAIT.

---

 dlls/winmm/playsound.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c
index 7b6c946..f6416ed 100644
--- a/dlls/winmm/playsound.c
+++ b/dlls/winmm/playsound.c
@@ -472,10 +472,8 @@ static BOOL MULTIMEDIA_PlaySound(const void* pszSound, HMODULE hmod, DWORD fdwSo
     TRACE("pszSound='%p' hmod=%p fdwSound=%08X\n",
 	  pszSound, hmod, fdwSound);
 
-    /* FIXME? I see no difference between SND_NOWAIT and SND_NOSTOP !
-     * there could be one if several sounds can be played at once...
-     */
-    if ((fdwSound & (SND_NOWAIT | SND_NOSTOP)) && PlaySoundList != NULL)
+    /* SND_NOWAIT is ignored in w95/2k/xp. */
+    if ((fdwSound & SND_NOSTOP) && PlaySoundList != NULL)
 	return FALSE;
 
     /* alloc internal structure, if we need to play something */




More information about the wine-cvs mailing list