winmm: Properly cleanup in return from proc_PlaySound if system sound is not found.
Prevents hanging in Outlook 2000 on sound cleanup.
This commit is contained in:
parent
22a48d6740
commit
c08b0a0a9d
|
@ -338,7 +338,7 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
|
||||||
wps->pszSound = wszSystemStart;
|
wps->pszSound = wszSystemStart;
|
||||||
else if (wps->pszSound == (LPCWSTR)SND_ALIAS_SYSTEMWELCOME)
|
else if (wps->pszSound == (LPCWSTR)SND_ALIAS_SYSTEMWELCOME)
|
||||||
wps->pszSound = wszSystemWelcome;
|
wps->pszSound = wszSystemWelcome;
|
||||||
else return FALSE;
|
else goto errCleanUp;
|
||||||
}
|
}
|
||||||
hmmio = get_mmioFromProfile(wps->fdwSound, wps->pszSound);
|
hmmio = get_mmioFromProfile(wps->fdwSound, wps->pszSound);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue