Commit c08b0a0a authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

winmm: Properly cleanup in return from proc_PlaySound if system sound is not found.

Prevents hanging in Outlook 2000 on sound cleanup.
parent 22a48d67
......@@ -338,7 +338,7 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
wps->pszSound = wszSystemStart;
else if (wps->pszSound == (LPCWSTR)SND_ALIAS_SYSTEMWELCOME)
wps->pszSound = wszSystemWelcome;
else return FALSE;
else goto errCleanUp;
}
hmmio = get_mmioFromProfile(wps->fdwSound, wps->pszSound);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment