X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..7e99520bd3fc092bbbcbc38bb699a0236618ea40:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index 197fec8941..85a55e95b8 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -327,11 +327,13 @@ wxFSFile* wxFileSystem::OpenFile(const wxString& location) meta = 0; for (i = 0; i < ln; i++) { - if (!meta) - switch (loc[i]) - { - case wxT('/') : case wxT(':') : case wxT('#') : meta = loc[i]; - } + switch (loc[i]) + { + case wxT('/') : case wxT(':') : case wxT('#') : + meta = loc[i]; + break; + } + if (meta != 0) break; } m_LastName = wxEmptyString;