[ttssh2-commit] [9965] リファクタリング

Back to archive index
scmno****@osdn***** scmno****@osdn*****
2022年 5月 27日 (金) 17:51:31 JST


Revision: 9965
          https://osdn.net/projects/ttssh2/scm/svn/commits/9965
Author:   nmaya
Date:     2022-05-27 17:51:30 +0900 (Fri, 27 May 2022)
Log Message:
-----------
リファクタリング

同じ値だが、直前に代入した ts 構造体のメンバを使うようにした

Modified Paths:
--------------
    branches/adjust_icon/teraterm/teraterm/vtwin.cpp

-------------- next part --------------
Modified: branches/adjust_icon/teraterm/teraterm/vtwin.cpp
===================================================================
--- branches/adjust_icon/teraterm/teraterm/vtwin.cpp	2022-05-27 08:50:17 UTC (rev 9964)
+++ branches/adjust_icon/teraterm/teraterm/vtwin.cpp	2022-05-27 08:51:30 UTC (rev 9965)
@@ -249,8 +249,8 @@
 	ts->PluginVTIconInstance = hInstance;
 	ts->PluginVTIconID = IconID;
 
-	inst = (ts->PluginVTIconInstance == NULL) ? hInst : hInstance;
-	icon_id = (ts->PluginVTIconID != 0) ? IconID :
+	inst = (ts->PluginVTIconInstance == NULL) ? hInst : ts->PluginVTIconInstance;
+	icon_id = (ts->PluginVTIconID != 0) ? ts->PluginVTIconID :
 	                                      (ts->VTIcon != IdIconDefault) ? ts->VTIcon
 	                                                                    : IDI_VT;
 	TTSetIcon(inst, HVTWin, MAKEINTRESOURCEW(icon_id), 0);


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