[ttssh2-commit] [9353] TCHAR を char に変更

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2021年 8月 12日 (木) 12:06:15 JST


Revision: 9353
          https://osdn.net/projects/ttssh2/scm/svn/commits/9353
Author:   zmatsuo
Date:     2021-08-12 12:06:14 +0900 (Thu, 12 Aug 2021)
Log Message:
-----------
TCHAR を char に変更

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/auth.c

-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/auth.c
===================================================================
--- trunk/ttssh2/ttxssh/auth.c	2021-08-12 03:06:04 UTC (rev 9352)
+++ trunk/ttssh2/ttxssh/auth.c	2021-08-12 03:06:14 UTC (rev 9353)
@@ -108,10 +108,10 @@
 			char chars[] = { (char) wParam, 0 };
 
 			SendMessageA(control, EM_REPLACESEL, (WPARAM) TRUE,
-			             (LPARAM) (TCHAR *) chars);
+			             (LPARAM)chars);
 
 			if (data->tipwin == NULL) {
-				TCHAR uimsg[MAX_UIMSG];
+				char uimsg[MAX_UIMSG];
 				RECT rect;
 				PTInstVar pvar = data->pvar;
 				UTIL_get_lang_msg("DLG_AUTH_TIP_CONTROL_CODE", pvar, "control character is entered");
@@ -355,7 +355,7 @@
 			}
 			break;
 		case 2: {
-			TCHAR user_name[UNLEN+1];
+			char user_name[UNLEN+1];
 			DWORD len = _countof(user_name);
 			BOOL r = GetUserName(user_name, &len);
 			if (r != 0) {
@@ -769,7 +769,7 @@
 	static HICON hIconDropdown;
 	static size_t username_str_len;
 	static wchar_t password_char;	// \x95\x9A\x82\xB9\x8E\x9A\x83L\x83\x83\x83\x89\x83N\x83^
-	TCHAR uimsg[MAX_UIMSG];
+	char uimsg[MAX_UIMSG];
 
 	switch (msg) {
 	case WM_INITDIALOG:
@@ -1133,7 +1133,7 @@
 				SetDlgItemText(dlg, IDC_SSHUSERNAME, pvar->session_settings.DefaultUserName);
 				goto after_user_name_set;
 			case 2: {
-				TCHAR user_name[UNLEN+1];
+				char user_name[UNLEN+1];
 				DWORD len = _countof(user_name);
 				BOOL r = GetUserName(user_name, &len);
 				if (r == 0) {
@@ -1446,10 +1446,10 @@
 static void init_default_auth_dlg(PTInstVar pvar, HWND dlg)
 {
 	int id;
-	TCHAR user_name[UNLEN+1];
+	char user_name[UNLEN+1];
 	DWORD len;
-	TCHAR uimsg[MAX_UIMSG];
-	TCHAR uimsg2[MAX_UIMSG];
+	char uimsg[MAX_UIMSG];
+	char uimsg2[MAX_UIMSG];
 	static const DlgTextInfo text_info[] = {
 		{ 0, "DLG_AUTHSETUP_TITLE" },
 		{ IDC_SSHAUTHBANNER, "DLG_AUTHSETUP_BANNER" },


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