aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Rennie <john.rennie@ratsauce.co.uk>2012-01-10 16:12:52 +0000
committerJohn Rennie <john.rennie@ratsauce.co.uk>2012-01-10 16:12:52 +0000
commit6c1b2ffec1756d5a65d97f2257d4c5d3ba0fe04d (patch)
tree46e46334f9b64626f690c27fb4403b78e4cc6a4c
parent6aa04be25d47b654d45c906ced9d5affe74e43e8 (diff)
CUtil::GetQualifiedFilename should not prefix the path to UNC filenames
-rw-r--r--xbmc/Util.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/Util.cpp b/xbmc/Util.cpp
index 1f1d51ea2f..9a3cbe99df 100644
--- a/xbmc/Util.cpp
+++ b/xbmc/Util.cpp
@@ -407,12 +407,12 @@ void CUtil::GetQualifiedFilename(const CStdString &strBasePath, CStdString &strF
if (!plItemUrl.GetProtocol().IsEmpty())
return;
- // If the filename starts "x:" or "/" it's already fully qualified so return
+ // If the filename starts "x:", "\\" or "/" it's already fully qualified so return
if (strFilename.size() > 1)
#ifdef _LINUX
if ( (strFilename[1] == ':') || (strFilename[0] == '/') )
#else
- if ( strFilename[1] == ':' )
+ if ( strFilename[1] == ':' || (strFilename[0] == '\\' && strFilename[1] == '\\'))
#endif
return;