X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=windows%2Fwinmisc.c;h=5bf52141ca7aa1fab834e0d67a559d675cfd481d;hb=a063e522970946bf7d5dc052079d7773c0dee76d;hp=822165877aef5f22e53576f883e19f6c36eb0232;hpb=04caa872fe77293fe3a355411afaf8addb75aa01;p=PuTTY.git 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')