Merge pull request #10740 from newnon/v3_windows_network_path

Windows network path fix
This commit is contained in:
minggo 2015-03-10 11:25:53 +08:00
commit 8e6d9d5dd2
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;
}