[ttssh2-commit] [9483] VS2005でビルドできなくなっていたので修正

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 10月 23日 (土) 01:08:58 JST


Revision: 9483
          https://osdn.net/projects/ttssh2/scm/svn/commits/9483
Author:   zmatsuo
Date:     2021-10-23 01:08:58 +0900 (Sat, 23 Oct 2021)
Log Message:
-----------
VS2005でビルドできなくなっていたので修正

- r9481
- LOAD_LIBRARY_SEARCH_SYSTEM32 定数を定義
- 次の変数をローカルからグローバル変数を使用するよう修正
  - pSetDefaultDllDirectories
  - pSetDllDirectoryA

Revision Links:
--------------
    https://osdn.net/projects/ttssh2/scm/svn/commits/9481

Modified Paths:
--------------
    trunk/teraterm/common/compat_win.h
    trunk/teraterm/common/dllutil.cpp

-------------- next part --------------
Modified: trunk/teraterm/common/compat_win.h
===================================================================
--- trunk/teraterm/common/compat_win.h	2021-10-18 15:44:24 UTC (rev 9482)
+++ trunk/teraterm/common/compat_win.h	2021-10-22 16:08:58 UTC (rev 9483)
@@ -156,6 +156,10 @@
 extern BOOL (WINAPI *pSetDefaultDllDirectories)(DWORD DirectoryFlags);
 extern BOOL (WINAPI *pSetDllDirectoryA)(LPCSTR lpPathName);
 
+#if !defined(LOAD_LIBRARY_SEARCH_SYSTEM32)
+#define LOAD_LIBRARY_SEARCH_SYSTEM32        0x00000800
+#endif
+
 // htmlhelp.dll (hhctrl.ocx)
 HWND _HtmlHelpW(HWND hwndCaller, LPCWSTR pszFile, UINT uCommand, DWORD_PTR dwData);
 

Modified: trunk/teraterm/common/dllutil.cpp
===================================================================
--- trunk/teraterm/common/dllutil.cpp	2021-10-18 15:44:24 UTC (rev 9482)
+++ trunk/teraterm/common/dllutil.cpp	2021-10-22 16:08:58 UTC (rev 9483)
@@ -299,8 +299,6 @@
 
 static void SetupLoadLibraryPath(void)
 {
-	BOOL (WINAPI *pSetDefaultDllDirectories)(DWORD);
-	BOOL (WINAPI *pSetDllDirectoryA)(LPCSTR);
 	const wchar_t *kernel32 = L"kernel32.dll";
 
 	// SetDefaultDllDirectories() \x82\xAA\x8Eg\x82\xA6\x82\xE9\x8Fꍇ\x82́A


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