Mercurial > hg > xemacs-beta
changeset 552:a3adcf42bcec
[xemacs-hg @ 2001-05-21 06:19:40 by mta]
Don't assert out if the printer isn't reachable on the net.
author | mta |
---|---|
date | Mon, 21 May 2001 06:19:41 +0000 |
parents | e9a3f8b4de53 |
children | 5c6dc7d576ad |
files | src/ChangeLog src/device-msw.c |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon May 21 05:26:51 2001 +0000 +++ b/src/ChangeLog Mon May 21 06:19:41 2001 +0000 @@ -1,3 +1,8 @@ +2001-05-20 Mike Alexander <mta@arbortext.com> + + * device-msw.c (msprinter_init_device): Don't assert out if the + printer isn't reachable on the net. + 2001-05-21 Martin Buchholz <martin@xemacs.org> * gui-x.c (sanity_check_lwlib): Remove.
--- a/src/device-msw.c Mon May 21 05:26:51 2001 +0000 +++ b/src/device-msw.c Mon May 21 06:19:41 2001 +0000 @@ -456,9 +456,10 @@ signal_open_printer_error (d); pdm = (DEVMODE*) xmalloc (dm_size); - DocumentProperties (NULL, DEVICE_MSPRINTER_HPRINTER(d), - printer_name, pdm, - NULL, DM_OUT_BUFFER); + if (DocumentProperties (NULL, DEVICE_MSPRINTER_HPRINTER(d), + printer_name, pdm, + NULL, DM_OUT_BUFFER) < 0) + signal_open_printer_error (d); assert (DEVMODE_SIZE (pdm) <= dm_size);