Revision: 8475 https://osdn.net/projects/ttssh2/scm/svn/commits/8475 Author: zmatsuo Date: 2020-01-16 23:20:21 +0900 (Thu, 16 Jan 2020) Log Message: ----------- Windows 9xのとき DialogBoxIndirectParamW() を使用しない - APIは存在するが常に失敗するため - r8472 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/8472 Modified Paths: -------------- trunk/teraterm/common/dlglib_cpp.cpp -------------- next part -------------- Modified: trunk/teraterm/common/dlglib_cpp.cpp =================================================================== --- trunk/teraterm/common/dlglib_cpp.cpp 2020-01-13 16:29:11 UTC (rev 8474) +++ trunk/teraterm/common/dlglib_cpp.cpp 2020-01-16 14:20:21 UTC (rev 8475) @@ -228,7 +228,9 @@ INT_PTR DlgResult; static INT_PTR (WINAPI *pDialogBoxIndirectParamW)(HINSTANCE hInstance, LPCDLGTEMPLATEW hDialogTemplate, HWND hWndParent, DLGPROC lpDialogFunc, LPARAM dwInitParam); - if (pDialogBoxIndirectParamW == NULL) { + // \x92\x8D 9x\x82ł\xCD DialogBoxIndirectParamW \x82\xF0\x8Eg\x97p\x82\xB5\x82Ȃ\xA2 + // DialogBoxIndirectParamW \x82͑\xB6\x8D݂\xB5\x82Ă\xE0\x8F\xED\x82Ɏ\xB8\x94s\x82\xB7\x82\xE9 + if (IsWindowsNTKernel() && pDialogBoxIndirectParamW == NULL) { HMODULE hDll = LoadLibrary("user32.dll"); FARPROC *proc = (FARPROC *)&pDialogBoxIndirectParamW; *proc = GetProcAddress(hDll, "DialogBoxIndirectParamW");