[Ttssh2-commit] [7268] UNICOWSを使用しないようにした

scmno****@osdn***** scmno****@osdn*****
2018年 11月 18日 (日) 00:44:31 JST


Revision: 7268
          http://sourceforge.jp/projects/ttssh2/scm/svn/commits/7268
Author:   zmatsuo
Date:     2018-11-18 00:44:30 +0900 (Sun, 18 Nov 2018)
Log Message:
-----------
UNICOWSを使用しないようにした
dnddlgでの文字化け修正
コンパイラ警告対策

Modified Paths:
--------------
    branches/cmake/teraterm/teraterm/CMakeLists.txt
    branches/cmake/teraterm/teraterm/dnddlg.cpp
    branches/cmake/teraterm/teraterm/ttsetup.h
    branches/cmake/teraterm/ttpset/ttset.c

-------------- next part --------------
Modified: branches/cmake/teraterm/teraterm/CMakeLists.txt
===================================================================
--- branches/cmake/teraterm/teraterm/CMakeLists.txt	2018-11-17 15:44:15 UTC (rev 7267)
+++ branches/cmake/teraterm/teraterm/CMakeLists.txt	2018-11-17 15:44:30 UTC (rev 7268)
@@ -1,7 +1,7 @@
 project(teraterm)
 
 option(USE_UNICODE_API "unicode" ON)
-option(LINK_UNICOWS "unicode APIs for 9x" ON)
+option(LINK_UNICOWS "unicode APIs for 9x" OFF)
 
 include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_SFMT.cmake)
 include(${CMAKE_CURRENT_SOURCE_DIR}/../../libs/lib_oniguruma.cmake)

Modified: branches/cmake/teraterm/teraterm/dnddlg.cpp
===================================================================
--- branches/cmake/teraterm/teraterm/dnddlg.cpp	2018-11-17 15:44:15 UTC (rev 7267)
+++ branches/cmake/teraterm/teraterm/dnddlg.cpp	2018-11-17 15:44:30 UTC (rev 7268)
@@ -196,9 +196,8 @@
 			if (IsDlgButtonChecked(hDlgWnd, IDC_SCP_RADIO) == BST_CHECKED) {
 				// SCP
 				DlgData->Param->DropType = DROP_TYPE_SCP;
-				SendMessage(GetDlgItem(hDlgWnd, IDC_SCP_PATH), WM_GETTEXT,
-							(WPARAM)DlgData->Param->ScpSendDirSize,
-							(LPARAM)DlgData->Param->ScpSendDirPtr);
+				GetDlgItemTextA(hDlgWnd, IDC_SCP_PATH,
+								DlgData->Param->ScpSendDirPtr, DlgData->Param->ScpSendDirSize);
 			} else if (IsDlgButtonChecked(hDlgWnd, IDC_SENDFILE_RADIO) == BST_CHECKED) {
 				// Send File
 				DlgData->Param->DropType =

Modified: branches/cmake/teraterm/teraterm/ttsetup.h
===================================================================
--- branches/cmake/teraterm/teraterm/ttsetup.h	2018-11-17 15:44:15 UTC (rev 7267)
+++ branches/cmake/teraterm/teraterm/ttsetup.h	2018-11-17 15:44:30 UTC (rev 7268)
@@ -47,7 +47,7 @@
 typedef void (WINAPI *PCopySerialList)
   (PCHAR IniSrc, PCHAR IniDest, PCHAR section, PCHAR key, int MaxList);
 typedef void (WINAPI *PAddValueToList)
-  (PCHAR FName, PCHAR Host, PCHAR section, PCHAR key, int MaxList);
+  (const PCHAR FName, const PCHAR Host, const PCHAR section, const PCHAR key, int MaxList);
 
 extern PReadIniFile ReadIniFile;
 extern PWriteIniFile WriteIniFile;

Modified: branches/cmake/teraterm/ttpset/ttset.c
===================================================================
--- branches/cmake/teraterm/ttpset/ttset.c	2018-11-17 15:44:15 UTC (rev 7267)
+++ branches/cmake/teraterm/ttpset/ttset.c	2018-11-17 15:44:30 UTC (rev 7268)
@@ -3726,8 +3726,8 @@
 }
 
 DllExport void WINAPI AddValueToList(
-	PCHAR FName, PCHAR Host, PCHAR section,
-	PCHAR key, int MaxList)
+	const PCHAR FName, const PCHAR Host, const PCHAR section,
+	const PCHAR key, int MaxList)
 {
 	HANDLE MemH;
 	PCHAR MemP;


Ttssh2-commit メーリングリストの案内