Module: wine Branch: master Commit: 113a2abbc8257fc4d83682c5c5fe4f344569806f URL: http://source.winehq.org/git/wine.git/?a=commit;h=113a2abbc8257fc4d83682c5c5...
Author: Akihiro Sagawa sagawa.aki@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) {