Commit ebe061ca authored by Kim F. Storm's avatar Kim F. Storm

(Fmsdos_set_mouse_buttons): Use xsignal2.

parent 4ae7943d
......@@ -204,9 +204,9 @@ them. This happens with wheeled mice on Windows 9X, for example. */)
CHECK_NUMBER (nbuttons);
n = XINT (nbuttons);
if (n < 2 || n > 3)
Fsignal (Qargs_out_of_range,
Fcons (build_string ("only 2 or 3 mouse buttons are supported"),
Fcons (nbuttons, Qnil)));
xsignal2 (Qargs_out_of_range,
build_string ("only 2 or 3 mouse buttons are supported"),
nbuttons);
mouse_setup_buttons (n);
return Qnil;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment