]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_arc.cpp
Rewind the input stream after failing to load image from it.
[wxWidgets.git] / src / common / fs_arc.cpp
index 7511c8704cafafe919f48586234f2a6ebe4f8ae4..7203354982df660a623f6042933a41f07f799385 100644 (file)
@@ -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;