wp8 compile fix -additional

This commit is contained in:
huangshiwu 2014-08-07 14:09:22 +08:00
parent 0016c7af70
commit b7aa046cd2
1 changed files with 4 additions and 2 deletions

View File

@ -953,7 +953,8 @@ bool FileUtils::isDirectoryExistInternal(const std::string& dirPath) const
}
return false;
#elif (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
if (GetFileAttributesExA(dirPath.c_str(), GetFileExInfoStandard, NULL))
WIN32_FILE_ATTRIBUTE_DATA wfad;
if (GetFileAttributesExA(dirPath.c_str(), GetFileExInfoStandard, &wfad))
{
return true;
}
@ -1055,7 +1056,8 @@ bool FileUtils::createDirectory(const std::string& path)
}
return true;
#elif (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
if (!(GetFileAttributesExA(path.c_str(), GetFileExInfoStandard, NULL)))
WIN32_FILE_ATTRIBUTE_DATA wfad;
if (!(GetFileAttributesExA(path.c_str(), GetFileExInfoStandard, &wfad)))
{
subpath = "";
for(int i = 0 ; i < dirs.size() ; ++i)