Ivan Savenko 8 luni în urmă
părinte
comite
e7fbe2d387
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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());