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:
Aric Stewart 2009-04-02 08:21:16 -05:00 committed by Alexandre Julliard
parent 22a48d6740
commit c08b0a0a9d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }