• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision9416 (tree)
Time2021-09-14 00:19:33
Authorzmatsuo

Log Message

_GetWindowTextLengthW() 文字長の誤りを修正

- 1文字少なかった

Change Summary

Incremental Difference

--- trunk/teraterm/layer_for_unicode/layer_for_unicode.cpp (revision 9415)
+++ trunk/teraterm/layer_for_unicode/layer_for_unicode.cpp (revision 9416)
@@ -165,10 +165,10 @@
165165
166166 int WINAPI _GetWindowTextLengthW(HWND hWnd)
167167 {
168- size_t lenW;
168+ size_t lenW;// 文字列長(`\0`は含まない)
169169 wchar_t *strW = SendMessageAFromW_WM_GETTEXT(hWnd, &lenW);
170170 free(strW);
171- return (int)(lenW - 1);
171+ return (int)lenW;
172172 }
173173
174174 static LRESULT SendMessageAFromW(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam)
Show on old repository browser