{
#if 0
Cursor cursor, nontext_cursor, mode_cursor, cross_cursor;
+ int count;
#endif
int mask_color;
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))
{
/* 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;