Revision: 9546 https://osdn.net/projects/ttssh2/scm/svn/commits/9546 Author: zmatsuo Date: 2021-11-27 22:48:57 +0900 (Sat, 27 Nov 2021) Log Message: ----------- Visual Studio 2005 でビルドできるよう修正 - 2005で警告が出ないよう修正 Modified Paths: -------------- trunk/teraterm/common/ttlib_static_cpp.cpp trunk/teraterm/ttpcmn/ttcmn.c -------------- next part -------------- Modified: trunk/teraterm/common/ttlib_static_cpp.cpp =================================================================== --- trunk/teraterm/common/ttlib_static_cpp.cpp 2021-11-24 23:43:40 UTC (rev 9545) +++ trunk/teraterm/common/ttlib_static_cpp.cpp 2021-11-27 13:48:57 UTC (rev 9546) @@ -210,7 +210,7 @@ if (Cf == 0) { // \x83N\x83\x8A\x83b\x83v\x83{\x81[\x83h\x82\xAA\x8B\xC1\x82\xBD // \x8B\x9A\x82\xF0\x95Ԃ\xB7 - return wcsdup(L""); + return _wcsdup(L""); } if (Cf == -1) { // \x88\xB5\x82\xA6\x82\xE9\x83f\x81[\x83^\x82\xAA\x82Ȃ\xA9\x82\xC1\x82\xBD Modified: trunk/teraterm/ttpcmn/ttcmn.c =================================================================== --- trunk/teraterm/ttpcmn/ttcmn.c 2021-11-24 23:43:40 UTC (rev 9545) +++ trunk/teraterm/ttpcmn/ttcmn.c 2021-11-27 13:48:57 UTC (rev 9546) @@ -112,6 +112,8 @@ static void CopyFiles(const wchar_t *file_list[], const wchar_t *src_dir, const wchar_t *dest_dir) { for (;;) { + wchar_t *dest; + size_t len; const wchar_t *filename = *file_list; file_list++; if (filename == NULL) { @@ -118,10 +120,10 @@ break; } - wchar_t *dest = NULL; + dest = NULL; awcscats(&dest, dest_dir, L"\\", filename, NULL); - size_t len = wcslen(dest); + len = wcslen(dest); if (dest[len - 1] == '\\') { // \x83t\x83H\x83\x8B\x83_\x8D쐬 CreateDirectoryW(dest, NULL);