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

This commit is contained in:
Akihiro Sagawa 2014-07-05 00:37:12 +09:00 committed by Alexandre Julliard
parent 455eca6d22
commit 113a2abbc8
1 changed files with 5 additions and 0 deletions

View File

@ -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)
{