发现cocos2d-x 3.3 win32里的一个小bug

D:\Cocos\frameworks\cocos2d-x\cocos\platform\win32\CCFileUtils-win32.cpp

-----原始代码------
bool FileUtilsWin32::isAbsolutePath(const std::string& strPath) const
{
if ( strPath.length() > 2
&& ( (strPath >= ‘a’ && strPath <= ‘z’) || (strPath >= ‘A’ && strPath <= ‘Z’) )
&& strPath == ‘:’)
{
return true;
}
return false;
}

-----------------改后-------------

bool FileUtilsWin32::isAbsolutePath(const std::string& strPath) const
{
if ( strPath.length() < 2 )
{
return false;
}

if( (strPath <= ‘a’ && strPath >= ‘z’) || (strPath <= ‘A’ && strPath >= ‘Z’))
{
return false;
}
if(strPath == ‘:’)
{
return true;
}

/*if (   strPath.length() > 2 
    && ( (strPath >= 'a' && strPath <= 'z') || (strPath >= 'A' && strPath <= 'Z') )
    && strPath == ':')
{
    return true;
}*/
return false;

}

d:\work\cpp\airPlane\Classes\AppDelegate.cpp

FileUtils::getInstance()->addSearchPath("res");

“res” 是一个是没有带盘符所以 strPath == ':'会造成错误