From: sirakaba Date: Sat, 6 Feb 2010 11:55:43 +0000 (+0000) Subject: 不要な処理を削除し高速化。 X-Git-Tag: 0.01beta7~77 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=441895fb2b0fe05c0a7a8ffba41b0e3a0a491cdf;p=tpi%2Flychee.git 不要な処理を削除し高速化。 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/tpi/tpi@211 9df91469-1e22-0410-86e7-ea8537beb833 --- diff --git a/src/plugin/eggArc/eggArc.cpp b/src/plugin/eggArc/eggArc.cpp index 6ce95c2..586b04f 100644 --- a/src/plugin/eggArc/eggArc.cpp +++ b/src/plugin/eggArc/eggArc.cpp @@ -205,12 +205,12 @@ int __stdcall GetFormatInformation(TPI_FORMATINFO * _fiInfo, bool _bFirst) int __stdcall LoadPlugin ( - const wxString & _szArcName, + const wxString &, wxULongLong ) { g_hLib = ::LoadLibrary(L"UnEGG32.dll"); - if (g_hLib == NULL || CheckArchive(_szArcName, NULL) != TPI_ERROR_SUCCESS) + if (g_hLib == NULL) { ::FreeLibrary(g_hLib); return TPI_ERROR_U_LOAD_LIBRARY; diff --git a/src/plugin/rarArc/rarArc.cpp b/src/plugin/rarArc/rarArc.cpp index e22119f..a784027 100644 --- a/src/plugin/rarArc/rarArc.cpp +++ b/src/plugin/rarArc/rarArc.cpp @@ -188,12 +188,12 @@ int __stdcall GetFormatInformation(TPI_FORMATINFO * _fiInfo, bool _bFirst) int __stdcall LoadPlugin ( - const wxString & _szArcName, + const wxString &, wxULongLong ) { g_hLib.Load(g_hLib.CanonicalizeName(wxT("unrar"))); - if (! g_hLib.IsLoaded() || CheckArchive(_szArcName, NULL) != TPI_ERROR_SUCCESS) + if (! g_hLib.IsLoaded()) { g_hLib.Unload(); return TPI_ERROR_U_LOAD_LIBRARY;