diff --git a/src/blockfile/SimpleBlockFile.cpp b/src/blockfile/SimpleBlockFile.cpp index ee2143bb2..7b463880a 100644 --- a/src/blockfile/SimpleBlockFile.cpp +++ b/src/blockfile/SimpleBlockFile.cpp @@ -491,7 +491,7 @@ BlockFile *SimpleBlockFile::BuildFromXML(DirManager &dm, const wxChar **attrs) if (!wxStricmp(attr, wxT("filename")) && // Can't use XMLValueChecker::IsGoodFileName here, but do part of its test. XMLValueChecker::IsGoodFileString(strValue) && - (strValue.Length() + 1 + dm.GetProjectDataDir().Length() <= MAX_PATH)) + (strValue.Length() + 1 + dm.GetProjectDataDir().Length() <= PLATFORM_MAX_PATH)) { if (!dm.AssignFile(fileName, strValue, false)) // Make sure fileName is back to uninitialized state so we can detect problem later.