Skip to content
Browse files

Merge pull request #954 from jmarshallnz/unc_paths_in_isfullpath

CURL::IsFullPath() should return true for UNC paths, which seem to work

This will be revert-able once non-URL paths are outlawed.
  • Loading branch information...
2 parents d7b9226 + 937e5f4 commit 533c344e29fd563f7ba4ad9d81c50ea70b0706a0 @jmarshallnz jmarshallnz committed May 10, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 xbmc/URL.cpp
View
1 xbmc/URL.cpp
@@ -656,6 +656,7 @@ bool CURL::IsFullPath(const CStdString &url)
if (url.size() && url[0] == '/') return true; // /foo/bar.ext
if (url.Find("://") >= 0) return true; // foo://bar.ext
if (url.size() > 1 && url[1] == ':') return true; // c:\\foo\\bar\\bar.ext
+ if (url.compare(0,2,"\\\\") == 0) return true; // \\UNC\path\to\file
return false;
}

0 comments on commit 533c344

Please sign in to comment.
Something went wrong with that request. Please try again.