diff src/device-msw.c @ 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 9a775fb11bb7
children 183866b06e0b
line wrap: on
line diff
--- 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);