Commit 0356489215c98dbfbaaf30af325aaf753ad533df
1 parent
25fffb07
Exists in
master
and in
3 other branches
Fixing windows build.
Showing
2 changed files
with
1 additions
and
2 deletions
Show diff stats
src/lib3270/kybd.c
src/lib3270/windows/util.c
... | ... | @@ -127,7 +127,7 @@ LIB3270_EXPORT char * lib3270_win32_translate_error_code(int lasterror) |
127 | 127 | |
128 | 128 | if(FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,NULL,lasterror,MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),buffer,4096,NULL) == 0) |
129 | 129 | { |
130 | - snprintf(buffer, 4095, _( "Windows error %d" ), e); | |
130 | + snprintf(buffer, 4095, _( "Windows error %d" ), lasterror); | |
131 | 131 | } |
132 | 132 | |
133 | 133 | #ifdef HAVE_ICONV | ... | ... |