Revision: 9318 https://osdn.net/projects/ttssh2/scm/svn/commits/9318 Author: zmatsuo Date: 2021-06-30 00:19:25 +0900 (Wed, 30 Jun 2021) Log Message: ----------- Windows 9x系で実装されていないAPIを無効化 - 次のAPIを使用しない - GetFullPathNameW - ExpandEnvironmentStringsW - wcsdup() -> _wcsdup() Modified Paths: -------------- trunk/teraterm/common/compat_win.cpp trunk/teraterm/ttpset/ttset.c -------------- next part -------------- Modified: trunk/teraterm/common/compat_win.cpp =================================================================== --- trunk/teraterm/common/compat_win.cpp 2021-06-29 15:19:17 UTC (rev 9317) +++ trunk/teraterm/common/compat_win.cpp 2021-06-29 15:19:25 UTC (rev 9318) @@ -369,9 +369,11 @@ pFindFirstFileW = NULL; pFindNextFileW = NULL; pRemoveDirectoryW = NULL; + pGetFullPathNameW = NULL; pGetPrivateProfileIntW = NULL; pGetModuleFileNameW = NULL; pLoadLibraryW = NULL; + pExpandEnvironmentStringsW = NULL; pGetTempPathW = NULL; pGetTempFileNameW = NULL; } Modified: trunk/teraterm/ttpset/ttset.c =================================================================== --- trunk/teraterm/ttpset/ttset.c 2021-06-29 15:19:17 UTC (rev 9317) +++ trunk/teraterm/ttpset/ttset.c 2021-06-29 15:19:25 UTC (rev 9318) @@ -1901,7 +1901,7 @@ // UI language message file (\x91\x8A\x91p\x83X) hGetPrivateProfileStringW(SectionW, L"UILanguageFile", NULL, FName, &ts->UILanguageFileW_ini); if (ts->UILanguageFileW_ini == NULL) { - ts->UILanguageFileW_ini = wcsdup(L"lang\\Default.lng"); + ts->UILanguageFileW_ini = _wcsdup(L"lang\\Default.lng"); } WideCharToACP_t(ts->UILanguageFileW_ini, ts->UILanguageFile_ini, sizeof(ts->UILanguageFile_ini));