Commit a81b4240804782c3ec1715da717fc815122b3536
1 parent
89498ecf
Exists in
master
and in
3 other branches
Reforma do sistema de actions aparentemente ok, teste por memory leaks saiu com 0
Showing
1 changed file
with
7 additions
and
7 deletions
Show diff stats
paste.c
... | ... | @@ -277,23 +277,23 @@ LIB3270_EXPORT int lib3270_paste(H3270 *h, const unsigned char *str) |
277 | 277 | return 0; |
278 | 278 | } |
279 | 279 | |
280 | -LIB3270_EXPORT int lib3270_pastenext(H3270 *h) | |
280 | +LIB3270_ACTION(pastenext) | |
281 | 281 | { |
282 | 282 | char * ptr; |
283 | 283 | int rc; |
284 | 284 | |
285 | - CHECK_SESSION_HANDLE(h); | |
285 | + CHECK_SESSION_HANDLE(hSession); | |
286 | 286 | |
287 | - if(!(lib3270_connected(h) && h->paste_buffer)) | |
287 | + if(!(lib3270_connected(hSession) && hSession->paste_buffer)) | |
288 | 288 | { |
289 | - lib3270_ring_bell(h); | |
289 | + lib3270_ring_bell(hSession); | |
290 | 290 | return 0; |
291 | 291 | } |
292 | 292 | |
293 | - ptr = h->paste_buffer; | |
294 | - h->paste_buffer = NULL; | |
293 | + ptr = hSession->paste_buffer; | |
294 | + hSession->paste_buffer = NULL; | |
295 | 295 | |
296 | - rc = lib3270_paste(h,(unsigned char *) ptr); | |
296 | + rc = lib3270_paste(hSession,(unsigned char *) ptr); | |
297 | 297 | |
298 | 298 | free(ptr); |
299 | 299 | return rc; | ... | ... |