Skip to content

Commit

Permalink
Fix DirectInput error codes being lost
Browse files Browse the repository at this point in the history
  • Loading branch information
Jimbly committed Mar 17, 2019
1 parent c528615 commit 58ca76b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SDL_error.c
Expand Up @@ -81,7 +81,7 @@ SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...)
case 0: /* Malformed format string.. */
--fmt;
break;
case 'i': case 'd': case 'u':
case 'i': case 'd': case 'u': case 'x': case 'X':
error->args[error->argc++].value_l = va_arg(ap, long);
break;
}
Expand Down Expand Up @@ -234,7 +234,7 @@ SDL_GetErrorMsg(char *errstr, int maxlen)
*spot++ = *fmt++;
*spot++ = '\0';
switch (spot[-2]) {
case 'i': case 'd': case 'u':
case 'i': case 'd': case 'u': case 'x': case 'X':
len = SDL_snprintf(msg, maxlen, tmp,
error->args[argi++].value_l);
if (len > 0) {
Expand Down

0 comments on commit 58ca76b

Please sign in to comment.