[Ttssh2-commit] [8249] Windows 9x で lng ファイルの読み込みに失敗するので修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2019年 10月 3日 (木) 00:07:44 JST


Revision: 8249
          https://osdn.net/projects/ttssh2/scm/svn/commits/8249
Author:   zmatsuo
Date:     2019-10-03 00:07:44 +0900 (Thu, 03 Oct 2019)
Log Message:
-----------
Windows 9x で lng ファイルの読み込みに失敗するので修正

Modified Paths:
--------------
    branches/unicode_buf/teraterm/common/compat_win.cpp

-------------- next part --------------
Modified: branches/unicode_buf/teraterm/common/compat_win.cpp
===================================================================
--- branches/unicode_buf/teraterm/common/compat_win.cpp	2019-10-02 15:07:34 UTC (rev 8248)
+++ branches/unicode_buf/teraterm/common/compat_win.cpp	2019-10-02 15:07:44 UTC (rev 8249)
@@ -33,6 +33,7 @@
 #include "compat_win.h"
 
 #include "dllutil.h"
+#include "ttlib.h"
 
 LRESULT (WINAPI *pSendDlgItemMessageW)(HWND hDlg, int nIDDlgItem, UINT Msg, WPARAM wParam, LPARAM lParam);
 BOOL (WINAPI *pModifyMenuW)(HMENU hMnu, UINT uPosition, UINT uFlags, UINT_PTR uIDNewItem, LPCWSTR lpNewItem);
@@ -115,4 +116,11 @@
 	done = TRUE;
 
 	DLLGetApiAddressFromLists(DllInfos);
+
+	// 9x\x93\xC1\x95ʏ\x88\x97\x9D
+	if (!IsWindowsNTKernel()) {
+		// GetPrivateProfileStringW() \x82\xAA Windows 95 \x82ɑ\xB6\x8D݂\xB5\x82Ă\xA2\x82\xE9(\x8A‹\xAB\x88ˑ\xB6?)
+		// \x90\xB3\x82\xB5\x82\xAD\x93\xAE\x8D삵\x82Ȃ\xA2\x82̂Ŗ\xB3\x8C\xF8\x82Ƃ\xB7\x82\xE9
+		pGetPrivateProfileStringW = NULL;
+	}
 }


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