コミットメタ情報
ログメッセージ
Ignore minor differences in titles and file names
Microsoft Office IME 2010 returns different descriptions (with
trailing space or not) and file names (in upper or lower case)
whether just after installation or else. This workaround ignores
these differences.
変更サマリ
差分
| | @@ -371,7 +371,7 @@ int CProfile::GetAppID(LPCTSTR appName) | 371 | 371 | {
| 372 | 372 | int nAppID = 0;
| 373 | 373 | for (nAppID = 0; nAppID < MAX_APP; ++nAppID)
| 374 | | - if (!_tcscmp(appName, m_Config.AppConfig[nAppID].AppName))
| | 374 | + if (!_tcsicmp(appName, m_Config.AppConfig[nAppID].AppName))
| 375 | 375 | break;
| 376 | 376 | return nAppID;
| 377 | 377 | }
|
| | @@ -186,11 +186,12 @@ void CProperties::AddItem(const CString& appTitle, const CString& appName) | 186 | 186 | for (int i = 0; i < m_cAppList.GetCount(); ++i) {
| 187 | 187 | CString tmpTitle, tmpName;
| 188 | 188 | GetAppTitleAndName(i, tmpTitle, tmpName);
| 189 | | - if (appName == tmpName)
| | 189 | + if (!appName.CompareNoCase(tmpName))
| 190 | 190 | return;
| 191 | 191 | }
| | 192 | + CString trimmed = CString(appTitle).Trim();
| 192 | 193 | CString item;
| 193 | | - item.Format(IDS_APPLICATION_LIST_ITEM, appTitle, appName);
| | 194 | + item.Format(IDS_APPLICATION_LIST_ITEM, trimmed, appName);
| 194 | 195 | m_cAppList.AddString(item);
| 195 | 196 | }
| 196 | 197 |
|
旧リポジトリブラウザで表示
|