[Scummvm-git-logs] scummvm master -> 5dda21c1c2552945a9446ee24ec6692734a0332a

bonki bonki at users.noreply.github.com
Sun May 20 19:54:52 CEST 2018


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:
5dda21c1c2 MADE: Do not attempt to read from non-existing file


Commit: 5dda21c1c2552945a9446ee24ec6692734a0332a
    https://github.com/scummvm/scummvm/commit/5dda21c1c2552945a9446ee24ec6692734a0332a
Author: Adrian Frühwirth (bonki at users.noreply.github.com)
Date: 2018-05-20T19:53:14+02:00

Commit Message:
MADE: Do not attempt to read from non-existing file

Fixes Trac#10534.

Changed paths:
    engines/made/resource.cpp


diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp
index a9734ed..d8ceb87 100644
--- a/engines/made/resource.cpp
+++ b/engines/made/resource.cpp
@@ -400,7 +400,8 @@ ResourceReader::~ResourceReader() {
 // V2
 void ResourceReader::open(const char *filename) {
 	_fd = new Common::File();
-	_fd->open(filename);
+	if (!_fd->open(filename))
+		error("ResourceReader::open() Could not open '%s'", filename);
 
 	_fd->skip(0x18); // skip header for now
 





More information about the Scummvm-git-logs mailing list