diff --git a/windows/winmisc.c b/windows/winmisc.c index 82216587..5bf52141 100644 --- a/windows/winmisc.c +++ b/windows/winmisc.c @@ -220,8 +220,8 @@ const char *win_strerror(int error) MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), msgtext, lenof(msgtext)-1, NULL)) { sprintf(msgtext, - "(unable to format: FormatMessage returned %d)", - error, GetLastError()); + "(unable to format: FormatMessage returned %d)", + GetLastError()); } else { int len = strlen(msgtext); if (len > 0 && msgtext[len-1] == '\n')