aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-02-18 10:25:11 +0100
committerEugene Sandulenko2016-02-18 10:30:34 +0100
commit51dca8301190736ffe5fb09c986452957aa05017 (patch)
tree8de7191b17f59a8bdeb36c0c32bb9dabcdfad75f
parentc3bae66b56b2258655d9d2af725f17fab94649b2 (diff)
downloadscummvm-rg350-51dca8301190736ffe5fb09c986452957aa05017.tar.gz
scummvm-rg350-51dca8301190736ffe5fb09c986452957aa05017.tar.bz2
scummvm-rg350-51dca8301190736ffe5fb09c986452957aa05017.zip
WAGE: Safety check on parsing main game file
-rw-r--r--engines/wage/wage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/wage/wage.cpp b/engines/wage/wage.cpp
index 1932168e41..8886b0d67d 100644
--- a/engines/wage/wage.cpp
+++ b/engines/wage/wage.cpp
@@ -109,7 +109,8 @@ Common::Error WageEngine::run() {
// Your main event loop should be (invoked from) here.
_resManager = new Common::MacResManager();
- _resManager->open(getGameFile());
+ if (!_resManager->open(getGameFile()))
+ error("Could not open %s as a resource fork", getGameFile());
_world = new World(this);