[ttssh2-commit] [9416] _GetWindowTextLengthW() 文字長の誤りを修正

Zurück zum Archiv-Index
scmno****@osdn***** scmno****@osdn*****
2021年 9月 14日 (火) 00:19:33 JST


Revision: 9416
          https://osdn.net/projects/ttssh2/scm/svn/commits/9416
Author:   zmatsuo
Date:     2021-09-14 00:19:33 +0900 (Tue, 14 Sep 2021)
Log Message:
-----------
_GetWindowTextLengthW() 文字長の誤りを修正

- 1文字少なかった

Modified Paths:
--------------
    trunk/teraterm/layer_for_unicode/layer_for_unicode.cpp

-------------- next part --------------
Modified: trunk/teraterm/layer_for_unicode/layer_for_unicode.cpp
===================================================================
--- trunk/teraterm/layer_for_unicode/layer_for_unicode.cpp	2021-09-11 16:42:10 UTC (rev 9415)
+++ trunk/teraterm/layer_for_unicode/layer_for_unicode.cpp	2021-09-13 15:19:33 UTC (rev 9416)
@@ -165,10 +165,10 @@
 
 int WINAPI _GetWindowTextLengthW(HWND hWnd)
 {
-	size_t lenW;
+	size_t lenW;// \x95\xB6\x8E\x9A\x97\xF1\x92\xB7(`\0`\x82͊܂܂Ȃ\xA2)
 	wchar_t *strW = SendMessageAFromW_WM_GETTEXT(hWnd, &lenW);
 	free(strW);
-	return (int)(lenW - 1);
+	return (int)lenW;
 }
 
 static LRESULT SendMessageAFromW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)


ttssh2-commit メーリングリストの案内
Zurück zum Archiv-Index