[Ttssh2-commit] [8996] TFileVarProto に受信ファイルパスを示すメンバを追加

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 11月 2日 (月) 00:35:26 JST


Revision: 8996
          https://osdn.net/projects/ttssh2/scm/svn/commits/8996
Author:   zmatsuo
Date:     2020-11-02 00:35:26 +0900 (Mon, 02 Nov 2020)
Log Message:
-----------
TFileVarProto に受信ファイルパスを示すメンバを追加

- RecievePath

Modified Paths:
--------------
    branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp
    branches/proto_unicode/teraterm/teraterm/filesys_proto.h

-------------- next part --------------
Modified: branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp
===================================================================
--- branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp	2020-11-01 15:35:13 UTC (rev 8995)
+++ branches/proto_unicode/teraterm/teraterm/filesys_proto.cpp	2020-11-01 15:35:26 UTC (rev 8996)
@@ -127,10 +127,15 @@
 		return FALSE;
 	memset(fv, 0, sizeof(*fv));
 
+	// \x8E\xF3\x90M\x83t\x83H\x83\x8B\x83_
 	char FileDirExpanded[MAX_PATH];
-	ExpandEnvironmentStrings(ts.FileDir, FileDirExpanded, sizeof(FileDirExpanded));
+	ExpandEnvironmentStrings(ts.FileDir, FileDirExpanded, _countof(FileDirExpanded));
+	AppendSlash(FileDirExpanded, _countof(FileDirExpanded));
+	fv->RecievePath = _strdup(FileDirExpanded);
+
+	// \x8E\xF3\x90M\x83t\x83H\x83\x8B\x83_\x82\xF0 fv->FullName \x82ɐݒ肵\x82Ă\xA8\x82\xAD
+	// fv->FullName[fv->DirLen] \x82\xA9\x82\xE7\x83t\x83@\x83C\x83\x8B\x96\xBC\x82\xF0\x90ݒ肷\x82\xE9\x82ƃt\x83\x8B\x83p\x83X\x82ɂȂ\xE9
 	strncpy_s(fv->FullName, sizeof(fv->FullName), FileDirExpanded, _TRUNCATE);
-	AppendSlash(fv->FullName,sizeof(fv->FullName));
 
 	fv->DirLen = strlen(fv->FullName);
 	fv->FileOpen = FALSE;

Modified: branches/proto_unicode/teraterm/teraterm/filesys_proto.h
===================================================================
--- branches/proto_unicode/teraterm/teraterm/filesys_proto.h	2020-11-01 15:35:13 UTC (rev 8995)
+++ branches/proto_unicode/teraterm/teraterm/filesys_proto.h	2020-11-01 15:35:26 UTC (rev 8996)
@@ -45,6 +45,9 @@
 //	PCHAR FnStrMem;
 //	int FnPtr;
 
+	// \x8E\xF3\x90M
+	char *RecievePath;		// \x8E\xF3\x90M\x83t\x83H\x83\x8B\x83_(\x8FI\x92[\x82Ƀp\x83X\x83Z\x83p\x83\x8C\x81[\x83^'\\'\x82\xAA\x95t\x89\xC1\x82\xB3\x82\xEA\x82Ă\xA2\x82\xE9)
+
 	BOOL FileOpen;
 	LONG FileSize, ByteCount;
 	BOOL OverWrite;


Ttssh2-commit メーリングリストの案内
Back to archive index