This commit is contained in:
Igor Pavlov
2005-12-04 00:00:00 +00:00
committed by Kornel Lesiński
parent e18587ba51
commit acac987575
19 changed files with 239 additions and 134 deletions

View File

@@ -144,8 +144,12 @@ static bool DoItemAlwaysStart(const UString &name)
int extPos = name.ReverseFind('.');
if (extPos < 0)
return false;
const UString ext = name.Mid(extPos + 1);
return (ext == UString(L"exe") || ext == UString(L"bat") || ext == UString(L"com"));
UString ext = name.Mid(extPos + 1);
ext.MakeLower();
return (ext == UString(L"exe") ||
ext == UString(L"bat") ||
ext == UString(L"com") ||
ext == UString(L"chm"));
}
static HANDLE StartEditApplication(const UString &path, HWND window)