[Scummvm-git-logs] scummvm master -> adac79341b0f8e8bb9a2b001dd745b8d9e94b5a1
sev-
sev at scummvm.org
Wed Jun 10 14:39:26 UTC 2020
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:
adac79341b DIRECTOR: Fix crash when built-in movie cannot be dumped
Commit: adac79341b0f8e8bb9a2b001dd745b8d9e94b5a1
https://github.com/scummvm/scummvm/commit/adac79341b0f8e8bb9a2b001dd745b8d9e94b5a1
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-06-10T16:38:51+02:00
Commit Message:
DIRECTOR: Fix crash when built-in movie cannot be dumped
Changed paths:
engines/director/resource.cpp
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index 053f347c40..2be6b588b7 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -147,13 +147,12 @@ void DirectorEngine::loadEXEv3(Common::SeekableReadStream *stream) {
if (!out.open(fname.c_str())) {
warning("Can not open dump file %s", fname.c_str());
- return;
- }
-
- out.write(buf, mmmSize);
+ } else {
+ out.write(buf, mmmSize);
- out.flush();
- out.close();
+ out.flush();
+ out.close();
+ }
free(buf);
}
More information about the Scummvm-git-logs
mailing list