Ivan Savenko преди 8 месеца
родител
ревизия
e7fbe2d387
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lib/filesystem/CZipLoader.cpp

+ 1 - 1
lib/filesystem/CZipLoader.cpp

@@ -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());