From d58ca0b320690d34ac713809a83296a8e6ba1a3f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 4 Jan 2006 04:47:19 +0000 Subject: [PATCH] * fhandler_console.cc (beep): Use MB_OK which is documented as using the default bell rather than -1 which seems to behave differently on different versions of Windows. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_console.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a26345f70..bee8e260b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2006-01-03 Christopher Faylor + + * fhandler_console.cc (beep): Use MB_OK which is documented as using + the default bell rather than -1 which seems to behave differently on + different versions of Windows. + 2006-01-03 Christopher Faylor * fhandler_process.cc (fhandler_process::readdir): Add missing argument diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index c10098b58..c6e67e804 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1428,7 +1428,7 @@ beep () if (res && res <= len) r.set_string ("", strcat (buf, "\\media\\ding.wav")); } - MessageBeep (0xFFFFFFFF); + MessageBeep (MB_OK); } const unsigned char *