From 2148cce296fd904e7f307bcc948e9c87cb8186bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 20 Aug 2000 21:52:12 +0000 Subject: [PATCH] fixed stupid loop in wxFileSystem::OpenFile git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/filesys.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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; -- 2.47.2