X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/906c935a80b10d53cecf57f71ab5f3f4f1d529ec..82b30473f935d7ffe21a165aa8ef63e16599c3fc:/src/common/filesys.cpp diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index f94b3f5d91..9f5a7c9a24 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -639,7 +639,7 @@ wxFileName wxFileSystem::URLToFileName(const wxString& url) // file urls either start with a forward slash (local harddisk), // otherwise they have a servername/sharename notation, // which only exists on msw and corresponds to a unc - if ( path[0u] == wxT('/') && path [1u] != wxT('/')) + if ( path.length() > 1 && (path[0u] == wxT('/') && path [1u] != wxT('/')) ) { path = path.Mid(1); }