fixed hash collisions in ZIP files (patch 1082026)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-19 16:53:49 +00:00
parent f260c476e4
commit 62d9eab60c
2 changed files with 8 additions and 7 deletions

View File

@@ -21,6 +21,10 @@
#include "wx/filesys.h"
#include "wx/hashmap.h"
WX_DECLARE_STRING_HASH_MAP(int, wxZipFilenameHashMap);
//---------------------------------------------------------------------------
// wxZipFSHandler
//---------------------------------------------------------------------------
@@ -40,7 +44,7 @@ class WXDLLIMPEXP_BASE wxZipFSHandler : public wxFileSystemHandler
class wxZipInputStream *m_Archive;
wxString m_Pattern, m_BaseDir, m_ZipFile;
bool m_AllowDirs, m_AllowFiles;
wxLongToLongHashMap *m_DirsFound;
wxZipFilenameHashMap *m_DirsFound;
wxString DoFind();
void CloseArchive(class wxZipInputStream *archive);