Windows network path fix

This commit is contained in:
Sergey Perepelitsa 2015-02-12 11:31:12 +03:00 committed by Sergey
parent 106c67fa4f
commit 215fe8a0c9
1 changed files with 2 additions and 2 deletions

View File

@ -123,9 +123,9 @@ bool FileUtilsWin32::isFileExistInternal(const std::string& strFilePath) const
bool FileUtilsWin32::isAbsolutePath(const std::string& strPath) const
{
if ( strPath.length() > 2
if ( (strPath.length() > 2
&& ( (strPath[0] >= 'a' && strPath[0] <= 'z') || (strPath[0] >= 'A' && strPath[0] <= 'Z') )
&& strPath[1] == ':')
&& strPath[1] == ':') || (strPath[0] == '/' && strPath[1] == '/'))
{
return true;
}