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

Alexandre Julliard julliard at winehq.org
Thu Apr 2 10:42:42 CDT 2009


Module: wine
Branch: master
Commit: c08b0a0a9d99393930f1869663e97b14b755dd2b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c08b0a0a9d99393930f1869663e97b14b755dd2b

Author: Aric Stewart <aric at codeweavers.com>
Date:   Thu Apr  2 08:21:16 2009 -0500

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

Prevents hanging in Outlook 2000 on sound cleanup.

---

 dlls/winmm/playsound.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winmm/playsound.c b/dlls/winmm/playsound.c
index 143f4a9..bdd12fd 100644
--- a/dlls/winmm/playsound.c
+++ b/dlls/winmm/playsound.c
@@ -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);
     }




More information about the wine-cvs mailing list