changeset 17632:d2915156a803

(x_set_mouse_color): Update calls to x_catch_errors and x_uncatch_errors.
author Richard M. Stallman <rms@gnu.org>
date Sat, 03 May 1997 19:18:28 +0000
parents 35d8e74c6edb
children 3b746ca2bca9
files src/w32fns.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Sat May 03 19:16:43 1997 +0000
+++ b/src/w32fns.c	Sat May 03 19:18:28 1997 +0000
@@ -1528,6 +1528,7 @@
 {
 #if 0
   Cursor cursor, nontext_cursor, mode_cursor, cross_cursor;
+  int count;
 #endif
   int mask_color;
 
@@ -1544,7 +1545,7 @@
   BLOCK_INPUT;
 
   /* It's not okay to crash if the user selects a screwy cursor.  */
-  x_catch_errors (FRAME_W32_DISPLAY (f));
+  count = x_catch_errors (FRAME_W32_DISPLAY (f));
 
   if (!EQ (Qnil, Vx_pointer_shape))
     {
@@ -1587,7 +1588,7 @@
 
   /* Check and report errors with the above calls.  */
   x_check_errors (FRAME_W32_DISPLAY (f), "can't set cursor shape: %s");
-  x_uncatch_errors (FRAME_W32_DISPLAY (f));
+  x_uncatch_errors (FRAME_W32_DISPLAY (f), count);
 
   {
     XColor fore_color, back_color;