[Scummvm-git-logs] scummvm master -> d665cbb3a5c7baab56aecdb820961c8383374c01
aquadran
noreply at scummvm.org
Sun Oct 27 17:57:11 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d665cbb3a5 WINTERMUTE: Added W/A. WME 2D Technology Demo has null name entries.
Commit: d665cbb3a5c7baab56aecdb820961c8383374c01
https://github.com/scummvm/scummvm/commit/d665cbb3a5c7baab56aecdb820961c8383374c01
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-27T18:57:06+01:00
Commit Message:
WINTERMUTE: Added W/A. WME 2D Technology Demo has null name entries.
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 933905eb9b0..05bd5fbb519 100644
--- a/engines/wintermute/base/file/base_package.cpp
+++ b/engines/wintermute/base/file/base_package.cpp
@@ -194,7 +194,12 @@ PackageSet::PackageSet(Common::FSNode file, const Common::String &filename, bool
}
debugC(kWintermuteDebugFileAccess, "Package contains %s", name);
- Common::Path path(name, '\\');
+ Common::Path path;
+
+ // WME 2D Technology Demo has null name entries
+ if (nameLength != 0)
+ path = Common::Path(name, '\\');
+
delete[] name;
name = nullptr;
More information about the Scummvm-git-logs
mailing list