if (*pixmap == NULL)
{
DWORD err = GetLastError ();
- Lisp_Object errcode;
/* All system errors are < 10000, so the following is safe. */
- XSETINT (errcode, err);
- image_error ("Unable to create bitmap, error code %d", errcode);
+ image_error ("Unable to create bitmap, error code %d", make_fixnum (err));
image_destroy_x_image (*pimg);
*pimg = NULL;
return 0;
log entry, it's OK to truncate it. */
char buf[4000];
int len = vsnprintf (buf, sizeof buf, format, ap);
- add_to_log (log_format, build_string (title),
- make_string (buf, max (0, min (len, sizeof buf - 1))));
+ image_error (log_format, build_string (title),
+ make_string (buf, max (0, min (len, sizeof buf - 1))));
}
# undef MINGW_STATIC