summary refs log tree commit diff stats
path: root/src/fe-gtk
diff options
context:
space:
mode:
authorArnavion <arnavion@gmail.com>2014-09-13 00:23:44 -0700
committerArnavion <arnavion@gmail.com>2014-09-13 00:23:44 -0700
commite209e55e5921e9ccaf1f713aa5010ddf1cb1c2d8 (patch)
tree615c190bbf1f166e8835364213a61de9b021efdf /src/fe-gtk
parentad2300f2365e4499fb559c80a6c313d82e8c36d6 (diff)
Use PlaySoundW to play sounds on Windows.
Fixes #1133
Diffstat (limited to 'src/fe-gtk')
-rw-r--r--src/fe-gtk/fe-gtk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fe-gtk/fe-gtk.c b/src/fe-gtk/fe-gtk.c
index 3c97a904..4b7d916f 100644
--- a/src/fe-gtk/fe-gtk.c
+++ b/src/fe-gtk/fe-gtk.c
@@ -656,10 +656,11 @@ void
 fe_beep (session *sess)
 {
 #ifdef WIN32
-	if (!PlaySound ("Notification.IM", NULL, SND_ALIAS|SND_ASYNC))
+	/* Play the "Instant Message Notification" system sound
+	 */
+	if (!PlaySoundW (L"Notification.IM", NULL, SND_ALIAS | SND_ASYNC))
 	{
-		/* This is really just a fallback attempt, may or may not work on new Windows releases, especially on x64.
-		 * You should set up the "Instant Message Notification" system sound instead, supported on Vista and up.
+		/* The user does not have the "Instant Message Notification" sound set. Fall back to system beep.
 		 */
 		Beep (1000, 50);
 	}