From: sirakaba Date: Mon, 8 Aug 2011 13:59:11 +0000 (+0000) Subject: 対応拡張子を判別する際、大文字小文字を区別して判別していたのを修正。 X-Git-Tag: 0.01beta14~52 X-Git-Url: http://git.osdn.net/view?p=tpi%2Flychee.git;a=commitdiff_plain;h=d81584c93b6d0bc4452122c4cc3b7892b977915e 対応拡張子を判別する際、大文字小文字を区別して判別していたのを修正。 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@557 9df91469-1e22-0410-86e7-ea8537beb833 --- diff --git a/doc/history.html b/doc/history.html index 9117dc7..da47273 100644 --- a/doc/history.html +++ b/doc/history.html @@ -63,6 +63,7 @@ diff --git a/src/plugin/cuiWrapper/cuiWrapper.cpp b/src/plugin/cuiWrapper/cuiWrapper.cpp index 46c0f0a..7d1afd2 100644 --- a/src/plugin/cuiWrapper/cuiWrapper.cpp +++ b/src/plugin/cuiWrapper/cuiWrapper.cpp @@ -211,7 +211,7 @@ int __stdcall GetFormatInformation(TPI_FORMATINFO * _fiInfo, bool _bFirst) MakeFormatInfo(xmlLibrary, wxT("cuiWrapper"), _fiInfo, s_nFileId++); wxString szExeFile = xmlLibrary->GetAttribute(wxT("name"), wxEmptyString); - if (myExecute(szExeFile, NULL, wxEmptyString, szExeFile.EndsWith(wxT(".exe"))) != TPI_ERROR_SUCCESS) + if (myExecute(szExeFile, NULL, wxEmptyString, szExeFile.MakeLower().EndsWith(wxT(".exe"))) != TPI_ERROR_SUCCESS) { _fiInfo->eSupportedCommand = 0; } @@ -265,7 +265,7 @@ int __stdcall LoadPlugin { // .tar.XXXなど二重判定への対応。 // if (asExt[i].IsSameAs(fnArchive.GetExt(), false)) - if (fnArchive.GetFullName().EndsWith(wxT('.') + asExt[i])) + if (fnArchive.GetFullName().MakeLower().EndsWith(wxT('.') + asExt[i].MakeLower())) { // ライブラリをロード。 g_LibInfo.szExeFile = xmlLibrary->GetAttribute(wxT("name"), wxEmptyString); @@ -297,7 +297,7 @@ int __stdcall OpenArchive ) { wxString szOutput; - if (myExecute(g_LibInfo.szExeFile + wxT(" ") + MakeCommandLineSend(g_LibInfo.node.GetAttribute(wxT("list"), wxEmptyString), _szArcName), & szOutput, wxEmptyString, g_LibInfo.szExeFile.EndsWith(wxT(".exe"))) != TPI_ERROR_SUCCESS) + if (myExecute(g_LibInfo.szExeFile + wxT(" ") + MakeCommandLineSend(g_LibInfo.node.GetAttribute(wxT("list"), wxEmptyString), _szArcName), & szOutput, wxEmptyString, g_LibInfo.szExeFile.MakeLower().EndsWith(wxT(".exe"))) != TPI_ERROR_SUCCESS) { return TPI_ERROR_U_USE_LIBRARY; } @@ -464,7 +464,7 @@ int __stdcall Command // コマンドライン実行。 wxString szOutput; - int nErrorCode = myExecute(g_LibInfo.szExeFile + wxT(" ") + szCommandLineSend, & szOutput, _swInfo->fnDestinationDirectory.GetFullPath(), g_LibInfo.szExeFile.EndsWith(wxT(".exe"))); + int nErrorCode = myExecute(g_LibInfo.szExeFile + wxT(" ") + szCommandLineSend, & szOutput, _swInfo->fnDestinationDirectory.GetFullPath(), g_LibInfo.szExeFile.MakeLower().EndsWith(wxT(".exe"))); // レスポンスファイル削除。 ::wxRemoveFile(szResponceFileName);