• R/O
  • SSH
  • HTTPS

ttssh2: 提交


Commit MetaInfo

修订版8276 (tree)
时间2019-10-08 22:42:11
作者yasuhide

Log Message

[Tooltip] 不要なLPCSTRキャストを無くした

更改概述

差异

--- branches/tootip_classify/teraterm/common/tipwin.cpp (revision 8275)
+++ branches/tootip_classify/teraterm/common/tipwin.cpp (revision 8276)
@@ -219,7 +219,7 @@
219219 _snprintf_s(class_name, sizeof(class_name), _TRUNCATE, _T("%s_%p"), TipWinClassName, hInstance);
220220 }
221221 WNDCLASS twc = { 0 };
222- return (GetClassInfo(hInstance, (LPCSTR)class_name, &twc) > 0);
222+ return (GetClassInfo(hInstance, class_name, &twc) > 0);
223223 }
224224
225225 ATOM CTipWin::RegisterClass()
@@ -234,13 +234,13 @@
234234 wc.hCursor = NULL;
235235 wc.hbrBackground = NULL;
236236 wc.lpszMenuName = NULL;
237- wc.lpszClassName = (LPCSTR)class_name;
237+ wc.lpszClassName = class_name;
238238 return ::RegisterClass(&wc);
239239 }
240240
241241 BOOL CTipWin::UnregisterClass()
242242 {
243- return ::UnregisterClass((LPCSTR)class_name, hInstance);
243+ return ::UnregisterClass(class_name, hInstance);
244244 }
245245
246246 VOID CTipWin::Create(HWND pHwnd)
@@ -278,7 +278,7 @@
278278 */
279279 tWin->tip_wnd =
280280 CreateWindowEx(WS_EX_TOOLWINDOW | WS_EX_TOPMOST,
281- (LPCSTR)class_name,
281+ class_name,
282282 NULL, WS_POPUP,
283283 0, 0,
284284 0, 0,
Show on old repository browser