[Scummvm-git-logs] scummvm master -> 4219772a58e68fb006b5f41b9d5f6a9d5943819a
sev-
noreply at scummvm.org
Sun Feb 8 16:51:30 UTC 2026
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:
4219772a58 DIRECTOR: Do not dump zero-sized chunks
Commit: 4219772a58e68fb006b5f41b9d5f6a9d5943819a
https://github.com/scummvm/scummvm/commit/4219772a58e68fb006b5f41b9d5f6a9d5943819a
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2026-02-08T17:51:03+01:00
Commit Message:
DIRECTOR: Do not dump zero-sized chunks
Changed paths:
engines/director/archive.cpp
diff --git a/engines/director/archive.cpp b/engines/director/archive.cpp
index 549b230e687..c50bc441e6c 100644
--- a/engines/director/archive.cpp
+++ b/engines/director/archive.cpp
@@ -278,10 +278,8 @@ void Archive::dumpChunk(Resource &res, Common::DumpFile &out) {
}
uint32 len = resStream->size();
- if (res.tag == MKTAG('f','r','e','e') || res.tag == MKTAG('j','u','n','k')) {
- if (len == 0)
- return;
- }
+ if (len == 0 || res.tag == MKTAG('f','r','e','e') || res.tag == MKTAG('j','u','n','k'))
+ return;
if (dataSize < len) {
data = (byte *)malloc(resStream->size());
More information about the Scummvm-git-logs
mailing list