[Ttssh2-commit] [8764] Unicode API(layer for unicode)を使用するように修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 5月 6日 (水) 23:51:29 JST


Revision: 8764
          https://osdn.net/projects/ttssh2/scm/svn/commits/8764
Author:   zmatsuo
Date:     2020-05-06 23:51:29 +0900 (Wed, 06 May 2020)
Log Message:
-----------
Unicode API(layer for unicode)を使用するように修正

- r8763 に抜けがあった

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/8763

Modified Paths:
--------------
    trunk/teraterm/ttpmacro/ttl.cpp

-------------- next part --------------
Modified: trunk/teraterm/ttpmacro/ttl.cpp
===================================================================
--- trunk/teraterm/ttpmacro/ttl.cpp	2020-05-02 13:25:14 UTC (rev 8763)
+++ trunk/teraterm/ttpmacro/ttl.cpp	2020-05-06 14:51:29 UTC (rev 8764)
@@ -1627,7 +1627,7 @@
 		SetResult(-2);
 		return Err;
 	}
-	if (MoveFileW(wc::fromUtf8(FName1), wc::fromUtf8(FName2)) != 0) {
+	if (_MoveFileW(wc::fromUtf8(FName1), wc::fromUtf8(FName2)) != 0) {
 		// \x83\x8A\x83l\x81[\x83\x80\x82Ɏ\xB8\x94s\x82\xB5\x82\xBD\x82\xE7\x81A\x83G\x83\x89\x81[\x82ŕԂ\xB7\x81B
 		SetResult(-3);
 		return Err;
@@ -1650,7 +1650,7 @@
 	if (Err!=0) return Err;
 
 	GetAbsPath(FName,sizeof(FName));
-	DWORD attr = GetFileAttributesW(wc::fromUtf8(FName));
+	DWORD attr = _GetFileAttributesW(wc::fromUtf8(FName));
 	if (attr != INVALID_FILE_ATTRIBUTES)
 		// exists file or folder
 		SetResult(1);
@@ -2162,7 +2162,7 @@
 	if (Err!=0) return Err;
 
 	GetAbsPath(FName,sizeof(FName));
-	DWORD attr = GetFileAttributesW(wc::fromUtf8(FName));
+	DWORD attr = _GetFileAttributesW(wc::fromUtf8(FName));
 	if ((attr & FILE_ATTRIBUTE_DIRECTORY) != 0) {
 		SetResult(1);
 	}
@@ -2262,7 +2262,7 @@
 	if (Err!=0) return Err;
 
 	GetAbsPath(Filename, sizeof(Filename));
-	SetResult(GetFileAttributesW(wc::fromUtf8(Filename)));
+	SetResult(_GetFileAttributesW(wc::fromUtf8(Filename)));
 
 	return Err;
 }


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