From: Michael Wetherell Date: Thu, 16 Nov 2006 19:03:03 +0000 (+0000) Subject: Fix not recognising '/' on Windows. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3acc9200575e1a93c406727da42ce93ae3df2177 Fix not recognising '/' on Windows. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fs_arc.cpp b/src/common/fs_arc.cpp index 357c2f7479..9c92942c23 100644 --- a/src/common/fs_arc.cpp +++ b/src/common/fs_arc.cpp @@ -119,7 +119,7 @@ wxArchiveFSCacheDataImpl::~wxArchiveFSCacheDataImpl() wxArchiveFSEntry *wxArchiveFSCacheDataImpl::AddToCache(wxArchiveEntry *entry) { - m_hash[entry->GetName()] = entry; + m_hash[entry->GetName(wxPATH_UNIX)] = entry; wxArchiveFSEntry *fse = new wxArchiveFSEntry; *m_endptr = fse; (*m_endptr)->entry = entry; @@ -152,7 +152,7 @@ wxArchiveEntry *wxArchiveFSCacheDataImpl::Get(const wxString& name) { AddToCache(entry); - if (entry->GetName() == name) + if (entry->GetName(wxPATH_UNIX) == name) return entry; }