From 4dfb88353b3671a71bc397d5f210d71f67f8fb04 Mon Sep 17 00:00:00 2001 From: QuakeGod <quakegod@sina.com> Date: 星期一, 23 十月 2023 15:17:10 +0800 Subject: [PATCH] fix1 --- KLink1/CDialogCommSet1.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/KLink1/CDialogCommSet1.cpp b/KLink1/CDialogCommSet1.cpp index ed90bee..fb57d19 100644 --- a/KLink1/CDialogCommSet1.cpp +++ b/KLink1/CDialogCommSet1.cpp @@ -101,11 +101,11 @@ for (int i = 1; i <= 16; i++) { s1.Format(_T("COM%d"), i); - if (get_com_name(s1, s2)) { s1 = s2; } + if (get_com_name(s1 + _T(")"), s2)) { s1 = s2; } m_combo_comport.AddString(s1); } // sComSelStr = _T("COM3"); - m_combo_comport.SelectString(0, sComSelStr); + // m_combo_comport.SelectString(0, sComSelStr); // m_combo_comport.SetCurSel(2); if (m_nComNum >0) m_combo_comport.SetCurSel(m_nComNum - 1); -- Gitblit v1.9.1