aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-01-04 04:47:19 +0000
committerChristopher Faylor <me@cgf.cx>2006-01-04 04:47:19 +0000
commitd58ca0b320690d34ac713809a83296a8e6ba1a3f (patch)
tree05acb779c7f9b5802b35ff76ea5577e387e4da7d
parent4c15746236d2fe169d795eca57a8a73f0e8fd096 (diff)
downloadnewlib-d58ca0b320690d34ac713809a83296a8e6ba1a3f.zip
newlib-d58ca0b320690d34ac713809a83296a8e6ba1a3f.tar.gz
newlib-d58ca0b320690d34ac713809a83296a8e6ba1a3f.tar.bz2
* 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.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_console.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index a26345f..bee8e26 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2006-01-03 Christopher Faylor <cgf@timesys.com>
+ * 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 <cgf@timesys.com>
+
* fhandler_process.cc (fhandler_process::readdir): Add missing argument
to syscall_printf.
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index c10098b..c6e67e8 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 *