Commit 0356489215c98dbfbaaf30af325aaf753ad533df

Authored by Perry Werneck
1 parent 25fffb07

Fixing windows build.

src/lib3270/kybd.c
@@ -960,7 +960,6 @@ static Boolean key_Character(H3270 *hSession, int code, Boolean with_ge, Boolean @@ -960,7 +960,6 @@ static Boolean key_Character(H3270 *hSession, int code, Boolean with_ge, Boolean
960 return True; 960 return True;
961 } 961 }
962 962
963 -  
964 LIB3270_EXPORT int lib3270_input_string(H3270 *hSession, const unsigned char *str) 963 LIB3270_EXPORT int lib3270_input_string(H3270 *hSession, const unsigned char *str)
965 { 964 {
966 int rc = 0; 965 int rc = 0;
src/lib3270/windows/util.c
@@ -127,7 +127,7 @@ LIB3270_EXPORT char * lib3270_win32_translate_error_code(int lasterror) @@ -127,7 +127,7 @@ LIB3270_EXPORT char * lib3270_win32_translate_error_code(int lasterror)
127 127
128 if(FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,NULL,lasterror,MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),buffer,4096,NULL) == 0) 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 #ifdef HAVE_ICONV 133 #ifdef HAVE_ICONV