[Ttssh2-commit] [8831] cast from size_t to DWORD

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2020年 7月 3日 (金) 23:44:08 JST


Revision: 8831
          https://osdn.net/projects/ttssh2/scm/svn/commits/8831
Author:   zmatsuo
Date:     2020-07-03 23:44:08 +0900 (Fri, 03 Jul 2020)
Log Message:
-----------
cast from size_t to DWORD

Modified Paths:
--------------
    trunk/teraterm/common/layer_for_unicode.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/layer_for_unicode.cpp
===================================================================
--- trunk/teraterm/common/layer_for_unicode.cpp	2020-07-03 14:44:00 UTC (rev 8830)
+++ trunk/teraterm/common/layer_for_unicode.cpp	2020-07-03 14:44:08 UTC (rev 8831)
@@ -816,7 +816,7 @@
 		return 0;
 	}
 	wchar_t *bufW = ToWcharA(bufA);
-	r = wcslen(bufW);	// \x95K\x97v\x82ȃo\x83b\x83t\x83@\x83T\x83C\x83Y\x82\xF0\x95Ԃ\xB7('\0'\x8A܂܂Ȃ\xA2)
+	r = (DWORD)wcslen(bufW);	// \x95K\x97v\x82ȃo\x83b\x83t\x83@\x83T\x83C\x83Y\x82\xF0\x95Ԃ\xB7('\0'\x8A܂܂Ȃ\xA2)
 	wcsncpy_s(lpBuffer, nBufferLength, bufW, _TRUNCATE);
 	if (lpFilePart != NULL) {
 		*lpFilePart = lpBuffer + (filepartA - filenameA) * sizeof(wchar_t);


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