winmm: Don't crash on PlaySound(... SND_ALIAS_ID).

This commit is contained in:
Dan Kegel 2008-12-28 16:02:29 -08:00 committed by Alexandre Julliard
parent cdced5b850
commit a7a50e0315
1 changed files with 5 additions and 0 deletions

View File

@ -446,6 +446,11 @@ static BOOL MULTIMEDIA_PlaySound(const void* pszSound, HMODULE hmod, DWORD fdwSo
if ((fdwSound & (SND_NOWAIT | SND_NOSTOP)) && PlaySoundList != NULL)
return FALSE;
if ((fdwSound & SND_ALIAS_ID) == SND_ALIAS_ID) {
FIXME("SND_ALIAS_ID not supported\n");
return FALSE;
}
/* alloc internal structure, if we need to play something */
if (pszSound && !(fdwSound & SND_PURGE))
{