diff options
author | Eugene Sandulenko | 2016-02-18 10:25:11 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2016-02-18 10:30:34 +0100 |
commit | 51dca8301190736ffe5fb09c986452957aa05017 (patch) | |
tree | 8de7191b17f59a8bdeb36c0c32bb9dabcdfad75f /engines | |
parent | c3bae66b56b2258655d9d2af725f17fab94649b2 (diff) | |
download | scummvm-rg350-51dca8301190736ffe5fb09c986452957aa05017.tar.gz scummvm-rg350-51dca8301190736ffe5fb09c986452957aa05017.tar.bz2 scummvm-rg350-51dca8301190736ffe5fb09c986452957aa05017.zip |
WAGE: Safety check on parsing main game file
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/wage.cpp | 3 |
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); |