winmm: Fallback to SND_FILENAME if the alias isn't found in the profile.
This commit is contained in:
parent
455eca6d22
commit
113a2abbc8
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue