Skip to content
Snippets Groups Projects
Commit a04e9844 authored by deuce's avatar deuce
Browse files

Add a zmodem_t * parameter to the duplicate callback.

parent 74226487
Branches
Tags
No related merge requests found
......@@ -1834,7 +1834,7 @@ int zmodem_recv_files(zmodem_t* zm, const char* download_dir, uint32_t* bytes_re
if(crc!=rcrc) {
lprintf(zm,LOG_WARNING,"Remote file has different CRC value: %08lX", rcrc);
if(zm->duplicate_file) {
if(zm->duplicate_filename(zm->cbdata))
if(zm->duplicate_filename(zm->cbdata, zm))
loop=TRUE;
}
break;
......
......@@ -277,7 +277,7 @@ typedef struct {
BOOL (*is_connected)(void*);
BOOL (*is_cancelled)(void*);
BOOL (*data_waiting)(void*, unsigned timeout);
BOOL (*duplicate_filename)(void*);
BOOL (*duplicate_filename)(void*, zmodem_t *zm);
} zmodem_t;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment