[Scummvm-git-logs] scummvm master -> 50c4bf29944cdfd68955c921e2c0bf9bad1f8e75
aquadran
noreply at scummvm.org
Thu Oct 16 16:23:35 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
50c4bf2994 WINTERMUTE: This is end of file instead empty strings
Commit: 50c4bf29944cdfd68955c921e2c0bf9bad1f8e75
https://github.com/scummvm/scummvm/commit/50c4bf29944cdfd68955c921e2c0bf9bad1f8e75
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2025-10-16T18:23:29+02:00
Commit Message:
WINTERMUTE: This is end of file instead empty strings
Changed paths:
engines/wintermute/base/file/base_package.cpp
diff --git a/engines/wintermute/base/file/base_package.cpp b/engines/wintermute/base/file/base_package.cpp
index 10300f1947b..09206b3599a 100644
--- a/engines/wintermute/base/file/base_package.cpp
+++ b/engines/wintermute/base/file/base_package.cpp
@@ -183,9 +183,10 @@ PackageSet::PackageSet(Common::FSNode file, const Common::String &filename, bool
uint32 offset, length, compLength, flags;/*, timeDate1, timeDate2;*/
nameLength = stream->readByte();
- // WME 2D Technology Demo has null name entries
- if (nameLength == 0)
- continue;
+ if (stream->eos()) {
+ debugC(kWintermuteDebugFileAccess, " Warning: end of package file '%s'.", filename.c_str());
+ break;
+ }
name = new char[nameLength];
stream->read(name, nameLength);
More information about the Scummvm-git-logs
mailing list