From d81584c93b6d0bc4452122c4cc3b7892b977915e Mon Sep 17 00:00:00 2001 From: sirakaba Date: Mon, 8 Aug 2011 13:59:11 +0000 Subject: [PATCH] =?utf8?q?=E5=AF=BE=E5=BF=9C=E6=8B=A1=E5=BC=B5=E5=AD=90?= =?utf8?q?=E3=82=92=E5=88=A4=E5=88=A5=E3=81=99=E3=82=8B=E9=9A=9B=E3=80=81?= =?utf8?q?=E5=A4=A7=E6=96=87=E5=AD=97=E5=B0=8F=E6=96=87=E5=AD=97=E3=82=92?= =?utf8?q?=E5=8C=BA=E5=88=A5=E3=81=97=E3=81=A6=E5=88=A4=E5=88=A5=E3=81=97?= =?utf8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@557 9df91469-1e22-0410-86e7-ea8537beb833 --- doc/history.html | 1 + src/plugin/cuiWrapper/cuiWrapper.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) 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); -- 2.11.0