Aric Stewart : winmm: SND_ALIAS and SND_ALIAS_ID overlap so when checking for SND_ALIAS_ID make sure it is SND_ALIAS_ID and not SND_ALIAS .
Alexandre Julliard
julliard at winehq.org
Thu Apr 2 10:42:42 CDT 2009
Module: wine
Branch: master
Commit: 7e8e9c41e9b566c0a4045ec54425800cbc375132
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7e8e9c41e9b566c0a4045ec54425800cbc375132
Author: Aric Stewart <aric at codeweavers.com>
Date: Thu Apr 2 08:32:59 2009 -0500
winmm: SND_ALIAS and SND_ALIAS_ID overlap so when checking for SND_ALIAS_ID make sure it is SND_ALIAS_ID and not SND_ALIAS.
---
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 bdd12fd..b8d1b71 100644
--- a/dlls/winmm/playsound.c
+++ b/dlls/winmm/playsound.c
@@ -310,7 +310,7 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
}
else if (wps->fdwSound & SND_ALIAS)
{
- if (wps->fdwSound & SND_ALIAS_ID)
+ if ((wps->fdwSound & SND_ALIAS_ID) == SND_ALIAS_ID)
{
static const WCHAR wszSystemAsterisk[] = {'S','y','s','t','e','m','A','s','t','e','r','i','s','k',0};
static const WCHAR wszSystemDefault[] = {'S','y','s','t','e','m','D','e','f','a','u','l','t',0};
More information about the wine-cvs
mailing list