Revision: 9020 https://osdn.net/projects/ttssh2/scm/svn/commits/9020 Author: zmatsuo Date: 2020-11-02 00:41:34 +0900 (Mon, 02 Nov 2020) Log Message: ----------- filesys.cpp で定義しているグローバル変数 FSend をファイル内変数へ変更 - FileSnedIsSending() を追加 - filesys_proto.cpp から利用 Modified Paths: -------------- branches/proto_unicode/teraterm/teraterm/filesys.cpp branches/proto_unicode/teraterm/teraterm/filesys.h branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp -------------- next part -------------- Modified: branches/proto_unicode/teraterm/teraterm/filesys.cpp =================================================================== --- branches/proto_unicode/teraterm/teraterm/filesys.cpp 2020-11-01 15:41:19 UTC (rev 9019) +++ branches/proto_unicode/teraterm/teraterm/filesys.cpp 2020-11-01 15:41:34 UTC (rev 9020) @@ -90,7 +90,7 @@ static char BracketStartStr[] = "\033[200~"; static char BracketEndStr[] = "\033[201~"; -BOOL FSend = FALSE; +static BOOL FSend = FALSE; static PFileTransDlg SendDlg = NULL; @@ -604,3 +604,11 @@ { return SendVar == NULL; } + +/** + * TODO: IsSendVarNULL() \x82Ƃ̈Ⴂ\x82\xCD? + */ +BOOL FileSnedIsSending(void) +{ + return FSend; +} Modified: branches/proto_unicode/teraterm/teraterm/filesys.h =================================================================== --- branches/proto_unicode/teraterm/teraterm/filesys.h 2020-11-01 15:41:19 UTC (rev 9019) +++ branches/proto_unicode/teraterm/teraterm/filesys.h 2020-11-01 15:41:34 UTC (rev 9020) @@ -36,7 +36,7 @@ // filesys.cpp BOOL IsSendVarNULL(void); - +BOOL FileSnedIsSending(void); BOOL FileSendStart(const wchar_t *filename, int binary); void FileSend(void); void FileSendEnd(void); Modified: branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp =================================================================== --- branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp 2020-11-01 15:41:19 UTC (rev 9019) +++ branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp 2020-11-01 15:41:34 UTC (rev 9020) @@ -98,9 +98,6 @@ static PFileVarProto FileVar = NULL; static int ProtoId; - -extern BOOL FSend; - static PProtoDlg PtDlg = NULL; static BOOL cv_ProtoFlag = FALSE; @@ -365,8 +362,8 @@ { if (cv_ProtoFlag) return FALSE; - if (FSend) - { + if (FileSnedIsSending()) + { // \x83t\x83@\x83C\x83\x8B\x91\x97\x90M\x92\x86 FreeFileVar_(&FileVar); return FALSE; }