Revision: 7820 https://osdn.net/projects/ttssh2/scm/svn/commits/7820 Author: yutakapon Date: 2019-06-28 19:36:31 +0900 (Fri, 28 Jun 2019) Log Message: ----------- ttxssh.dllにlibcrypto-1_1.dllを動的リンクしている場合、 SetDefaultDllDirectories()の影響でttxssh.dllがLoadLibrary できないという現象に対する仮処置(単体テスト推進のため)。 ただし、正式処置にはできないので注意。 チケット #36876 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/36876 Modified Paths: -------------- branches/openssl_1_1_1_v2/teraterm/teraterm/ttplug.c -------------- next part -------------- Modified: branches/openssl_1_1_1_v2/teraterm/teraterm/ttplug.c =================================================================== --- branches/openssl_1_1_1_v2/teraterm/teraterm/ttplug.c 2019-06-27 21:52:48 UTC (rev 7819) +++ branches/openssl_1_1_1_v2/teraterm/teraterm/ttplug.c 2019-06-28 10:36:31 UTC (rev 7820) @@ -119,7 +119,15 @@ char buf[1024]; struct _finddata_t searchData; long searchHandle; + HMODULE hm; + // ttxssh.dll\x82\xC9libcrypto-1_1.dll\x82I\x83\x8A\x83\x93\x83N\x82\xB5\x82Ă\xA2\x82\xE9\x8Fꍇ\x81A + // SetDefaultDllDirectories()\x82̉e\x8B\xBF\x82\xC5ttxssh.dll\x82\xAALoadLibrary\x82ł\xAB\x82Ȃ\xA2\x82Ƃ\xA2\x82\xA4 + // \x8C\xBB\x8Fۂɑ\xB7\x82鉼\x8F\x88\x92u\x81B + // \x82\xBD\x82\xBE\x82\xB5\x81A\x90\xB3\x8E\xAE\x8F\x88\x92u\x82ɂ͂ł\xAB\x82Ȃ\xA2\x81B + _snprintf_s(buf, sizeof(buf), _TRUNCATE, "%s\\libcrypto-1_1.dll", ts->HomeDir); + hm = LoadLibrary(buf); + _snprintf_s(buf, sizeof(buf), _TRUNCATE, "%s\\TTX*.DLL", ts->HomeDir); searchHandle = _findfirst(buf, &searchData);