]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/filesys.cpp
Make wxDragImage ctors taking hot spot point really deprecated in wxMSW.
[wxWidgets.git] / src / common / filesys.cpp
index f94b3f5d91fe60b628ad29b8ac778ff7b9fce8e2..9f5a7c9a24c4ccc0e952e85f5a7625eeb64837e0 100644 (file)
@@ -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);
     }