Akihiro Sagawa : winmm: Fallback to SND_FILENAME if the alias isn' t found in the profile.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jul 4 14:07:33 CDT 2014


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

Author: Akihiro Sagawa <sagawa.aki at gmail.com>
Date:   Sat Jul  5 00:37:12 2014 +0900

winmm: Fallback to SND_FILENAME if the alias isn't found in the profile.

---

 dlls/winmm/playsound.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c
index 64db333..f8bd91f 100644
--- a/dlls/winmm/playsound.c
+++ b/dlls/winmm/playsound.c
@@ -338,6 +338,11 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
             else goto errCleanUp;
         }
         hmmio = get_mmioFromProfile(wps->fdwSound, wps->pszSound);
+        if (!hmmio)
+        {
+            wps->fdwSound &= ~SND_ALIAS;
+            wps->fdwSound |= SND_FILENAME;
+        }
     }
     if (!hmmio && wps->fdwSound & SND_FILENAME)
     {




More information about the wine-cvs mailing list