# HG changeset patch # User aidan # Date 1164827403 0 # Node ID 4bcad369dfd4c51000ff6159f66f487cfa1ea8ff # Parent 792485be7974506a55e57049e7d37acc51a06cc9 [xemacs-hg @ 2006-11-29 19:10:01 by aidan] Avoid a crash in Cygwin when clicking File -> Print under X11. diff -r 792485be7974 -r 4bcad369dfd4 src/ChangeLog --- a/src/ChangeLog Tue Nov 28 22:51:04 2006 +0000 +++ b/src/ChangeLog Wed Nov 29 19:10:03 2006 +0000 @@ -1,3 +1,10 @@ +2006-11-29 Aidan Kehoe + + * sound.c (init_native_sound): + Only X11 and GTK devices can possibly not be on the console of the + associated machine. Fixes a crash when init_native_sound is called + on a msprinter device. + 2006-11-28 Aidan Kehoe * device-x.c: diff -r 792485be7974 -r 4bcad369dfd4 src/sound.c --- a/src/sound.c Tue Nov 28 22:51:04 2006 +0000 +++ b/src/sound.c Wed Nov 29 19:10:03 2006 +0000 @@ -590,7 +590,7 @@ static void init_native_sound (struct device *d) { - if (DEVICE_TTY_P (d) || DEVICE_STREAM_P (d) || DEVICE_MSWINDOWS_P(d)) + if (!(DEVICE_X_P(d) || DEVICE_GTK_P(dev))) DEVICE_ON_CONSOLE_P (d) = 1; #ifdef HAVE_X_WINDOWS else