From f79cf73292f47d1d225297f53b1cfc30bda0462f Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Sat, 21 Aug 2010 09:36:12 +0000 Subject: [PATCH] Fix potential crash, fixes #12375: PATCH to fix help controller crash git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fs_arc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fs_arc.cpp b/src/common/fs_arc.cpp index 7511c8704c..7203354982 100644 --- a/src/common/fs_arc.cpp +++ b/src/common/fs_arc.cpp @@ -358,7 +358,7 @@ wxFSFile* wxArchiveFSHandler::OpenFile( right = rightPart.GetFullPath(wxPATH_UNIX); } - if (right.GetChar(0) == wxT('/')) right = right.Mid(1); + if (right.Length() && right.GetChar(0) == wxT('/')) right = right.Mid(1); if (!m_cache) m_cache = new wxArchiveFSCache; -- 2.49.0