From 91fbb3f0d8b47a59a3634954e74eaa5d69968e74 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 22 Aug 2003 00:37:36 +0000 Subject: [PATCH] fixed MessageBeep() svn path=/trunk/; revision=5734 --- reactos/lib/user32/windows/messagebox.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/reactos/lib/user32/windows/messagebox.c b/reactos/lib/user32/windows/messagebox.c index 4404ba87168..e335c4a8ef1 100644 --- a/reactos/lib/user32/windows/messagebox.c +++ b/reactos/lib/user32/windows/messagebox.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: messagebox.c,v 1.12 2003/08/22 00:33:47 weiden Exp $ +/* $Id: messagebox.c,v 1.13 2003/08/22 00:37:36 weiden Exp $ * * PROJECT: ReactOS user32.dll * FILE: lib/user32/windows/messagebox.c @@ -700,8 +700,9 @@ MessageBeep(UINT uType) switch(uType) { case 0xFFFFFFFF: - /* FIXME check if soundcard installed, else fall through to MB_OK */ - return Beep(500, 100); // Beep through speaker + //if(WaveOutGetNumDevs() == 0) + return Beep(500, 100); // Beep through speaker + /* fall through */ case MB_OK: EventName = L"SystemDefault"; break; @@ -718,7 +719,7 @@ MessageBeep(UINT uType) EventName = L"SystemQuestion"; break; } - DbgPrint("Playing sound: %ws\n", (LPWSTR)EventName); + return PlaySoundW(EventName, NULL, SND_ALIAS | SND_NOWAIT | SND_NOSTOP | SND_ASYNC); #else return Beep(500, 100); // Beep through speaker