From: Václav Slavík Date: Sun, 28 Nov 1999 18:25:42 +0000 (+0000) Subject: fixed minor bug in wxFileSystem's converting \ to / X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7dee4b2ba05f613f75afa3994320a1b547bb04c3 fixed minor bug in wxFileSystem's converting \ to / git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index b0f1c67a4c..182465c6a1 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -312,10 +312,10 @@ wxFSFile* wxFileSystem::OpenFile(const wxString& location) while (node) { wxFileSystemHandler *h = (wxFileSystemHandler*) node -> GetData(); - if (h->CanOpen(m_Path + location)) + if (h->CanOpen(m_Path + loc)) { - s = h->OpenFile(*this, m_Path + location); - if (s) { m_LastName = m_Path + location; break; } + s = h->OpenFile(*this, m_Path + loc); + if (s) { m_LastName = m_Path + loc; break; } } node = node->GetNext(); } @@ -328,10 +328,10 @@ wxFSFile* wxFileSystem::OpenFile(const wxString& location) while (node) { wxFileSystemHandler *h = (wxFileSystemHandler*) node->GetData(); - if (h->CanOpen(location)) + if (h->CanOpen(loc)) { - s = h->OpenFile(*this, location); - if (s) { m_LastName = location; break; } + s = h->OpenFile(*this, loc); + if (s) { m_LastName = loc; break; } } node = node->GetNext(); }