OSDN Git Service

不要な処理を削除し高速化。
authorsirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sat, 6 Feb 2010 11:55:43 +0000 (11:55 +0000)
committersirakaba <sirakaba@9df91469-1e22-0410-86e7-ea8537beb833>
Sat, 6 Feb 2010 11:55:43 +0000 (11:55 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@211 9df91469-1e22-0410-86e7-ea8537beb833

src/plugin/eggArc/eggArc.cpp
src/plugin/rarArc/rarArc.cpp

index 6ce95c2..586b04f 100644 (file)
@@ -205,12 +205,12 @@ int __stdcall GetFormatInformation(TPI_FORMATINFO * _fiInfo, bool _bFirst)
 \r
 int __stdcall LoadPlugin\r
 (\r
-       const wxString & _szArcName,\r
+       const wxString &,\r
        wxULongLong\r
 )\r
 {\r
        g_hLib = ::LoadLibrary(L"UnEGG32.dll");\r
-       if (g_hLib == NULL || CheckArchive(_szArcName, NULL) != TPI_ERROR_SUCCESS)\r
+       if (g_hLib == NULL)\r
        {\r
                ::FreeLibrary(g_hLib);\r
                return TPI_ERROR_U_LOAD_LIBRARY;\r
index e22119f..a784027 100644 (file)
@@ -188,12 +188,12 @@ int __stdcall GetFormatInformation(TPI_FORMATINFO * _fiInfo, bool _bFirst)
 \r
 int __stdcall LoadPlugin\r
 (\r
-       const wxString & _szArcName,\r
+       const wxString &,\r
        wxULongLong\r
 )\r
 {\r
        g_hLib.Load(g_hLib.CanonicalizeName(wxT("unrar")));\r
-       if (! g_hLib.IsLoaded() || CheckArchive(_szArcName, NULL) != TPI_ERROR_SUCCESS)\r
+       if (! g_hLib.IsLoaded())\r
        {\r
                g_hLib.Unload();\r
                return TPI_ERROR_U_LOAD_LIBRARY;\r