From 0cb3b850315da692483dce1b65e104c867bf3e2b Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Wed, 14 Jun 2023 07:12:46 +0700 Subject: [PATCH] [WINESYNC][WINMM] PlaySound ignores SND_NOWAIT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wine commit: 0a81f12ce10f88a06e1a95523c1e4da7587fa3e9 author: Jörg Höhle Tue, 11 Jan 2011 22:30:34 +0000 (23:30 +0100) committer: Alexandre Julliard Fri, 14 Jan 2011 17:26:20 +0000 (18:26 +0100) --- dll/win32/winmm/playsound.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/dll/win32/winmm/playsound.c b/dll/win32/winmm/playsound.c index f0b2fe086f9..5bb2c31be4f 100644 --- a/dll/win32/winmm/playsound.c +++ b/dll/win32/winmm/playsound.c @@ -574,11 +574,9 @@ 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) - return FALSE; + /* 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 */ if (pszSound && !(fdwSound & SND_PURGE))