1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-11 14:49:23 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2025-02-25 16:55:58 +00:00
parent d1b13a0fe4
commit e7fbe2d387

View File

@ -226,7 +226,7 @@ bool ZipArchive::extract(const boost::filesystem::path & where, const std::strin
if (!destFile.good())
{
#ifdef VCMI_WINDOWS
if (fullName.size() < MAX_PATH)
if (fullName.size() < 260)
logGlobal->error("Failed to open file '%s'", fullName.c_str());
else
logGlobal->error("Failed to open file with long path '%s' (%d characters)", fullName.c_str(), fullName.size());