Tera Termの個人的な作業用リポジトリ
修订版 | ab3b8590a7851fb0acb08ecaf4197fd481207dd2 (tree) |
---|---|
时间 | 2020-10-03 00:46:44 |
作者 | zmatsuo <zmatsuo@user...> |
Commiter | zmatsuo |
sendmem.cpp 内で変数 FileVar の参照をなくした
git-svn-id: svn+ssh://svn.osdn.net/svnroot/ttssh2/trunk@8950 f5f01b69-1e22-0410-acbf-894ab4bd6246
@@ -637,23 +637,16 @@ void SendMemFinish(SendMem *sm) | ||
637 | 637 | * TRUE binary file |
638 | 638 | */ |
639 | 639 | #if SENDMEM_USE_OLD_API |
640 | -BOOL SendMemSendFile(const wchar_t *filename, BOOL binary) | |
640 | +BOOL SendMemSendFile(const wchar_t *filename, BOOL binary, SendMemDelayType delay_type, DWORD delay_tick, size_t send_max) | |
641 | 641 | { |
642 | - if (SendVar != NULL) { | |
643 | - return FALSE; | |
644 | - } | |
645 | - if (!NewFileVar(&SendVar)) { | |
646 | - return FALSE; | |
647 | - } | |
642 | + (void)delay_type; | |
643 | + (void)delay_tick; | |
644 | + (void)send_max; | |
648 | 645 | |
649 | 646 | char *FileNameA = ToCharW(filename); |
650 | - strncpy_s(SendVar->FullName, sizeof(SendVar->FullName), FileNameA, _TRUNCATE); | |
647 | + BOOL r = FileSendStart2(FileNameA, binary == FALSE ? 0 : 1); | |
651 | 648 | free(FileNameA); |
652 | - | |
653 | - SendVar->DirLen = 0; | |
654 | - ts.TransBin = binary == FALSE ? 0 : 1; | |
655 | - FileSendStart(); | |
656 | - return TRUE; | |
649 | + return r; | |
657 | 650 | } |
658 | 651 | #else |
659 | 652 | BOOL SendMemSendFile(const wchar_t *filename, BOOL binary, SendMemDelayType delay_type, DWORD delay_tick, size_t send_max) |