Commit 66cc9c3a490a6cecfb5c702e813300e3bd3b1330
1 parent
263278a6
Exists in
master
and in
3 other branches
Corrigido retorno do método set_text_at
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
paste.c
@@ -223,7 +223,7 @@ static int set_string(H3270 *hSession, const unsigned char *str) | @@ -223,7 +223,7 @@ static int set_string(H3270 *hSession, const unsigned char *str) | ||
223 | 223 | ||
224 | LIB3270_EXPORT int lib3270_set_string_at(H3270 *hSession, int row, int col, const unsigned char *str) | 224 | LIB3270_EXPORT int lib3270_set_string_at(H3270 *hSession, int row, int col, const unsigned char *str) |
225 | { | 225 | { |
226 | - int rc = -1; | 226 | + int rc = 0; |
227 | 227 | ||
228 | CHECK_SESSION_HANDLE(hSession); | 228 | CHECK_SESSION_HANDLE(hSession); |
229 | 229 | ||
@@ -241,11 +241,12 @@ LIB3270_EXPORT int lib3270_set_string_at(H3270 *hSession, int row, int col, cons | @@ -241,11 +241,12 @@ LIB3270_EXPORT int lib3270_set_string_at(H3270 *hSession, int row, int col, cons | ||
241 | hSession->cbk.suspend(hSession); | 241 | hSession->cbk.suspend(hSession); |
242 | 242 | ||
243 | hSession->cursor_addr = (row * hSession->cols) + col; | 243 | hSession->cursor_addr = (row * hSession->cols) + col; |
244 | - rc = set_string(hSession, str); | 244 | + rc += set_string(hSession, str); |
245 | 245 | ||
246 | hSession->cbk.resume(hSession); | 246 | hSession->cbk.resume(hSession); |
247 | } | 247 | } |
248 | 248 | ||
249 | + trace("%s rc=%d",__FUNCTION__,rc); | ||
249 | return rc; | 250 | return rc; |
250 | } | 251 | } |
251 | 252 |