diff options
author | Torbjörn Andersson | 2010-08-18 17:51:44 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-08-18 17:51:44 +0000 |
commit | 7f97d568298b51370fef3d25b847268416849694 (patch) | |
tree | 186ea5b65363c1f6260a9b66159e6e7b6241ada6 /engines/hugo/file.cpp | |
parent | 70cd6cfda52ed4feca562aa1b52d3a6c52a4ccba (diff) | |
download | scummvm-rg350-7f97d568298b51370fef3d25b847268416849694.tar.gz scummvm-rg350-7f97d568298b51370fef3d25b847268416849694.tar.bz2 scummvm-rg350-7f97d568298b51370fef3d25b847268416849694.zip |
HUGO: Fix GCC warnings.
svn-id: r52192
Diffstat (limited to 'engines/hugo/file.cpp')
-rw-r--r-- | engines/hugo/file.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index f4838e7320..e343d2d3c8 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -745,13 +745,14 @@ void FileManager::printBootText() { debugC(1, kDebugFile, "printBootText"); - if (!ofp.open(BOOTFILE)) + if (!ofp.open(BOOTFILE)) { if (_vm._gameVariant == 3) { //TODO initialize properly _boot structure warning("printBootText - Skipping as H1 Dos may be a freeware"); return; } else Utils::Error(FILE_ERR, BOOTFILE); + } // Allocate space for the text and print it buf = (char *)malloc(_boot.exit_len + 1); @@ -785,13 +786,14 @@ void FileManager::readBootFile() { debugC(1, kDebugFile, "readBootFile"); - if (!ofp.open(BOOTFILE)) + if (!ofp.open(BOOTFILE)) { if (_vm._gameVariant == 3) { //TODO initialize properly _boot structure warning("readBootFile - Skipping as H1 Dos may be a freeware"); return; } else Utils::Error(FILE_ERR, BOOTFILE); + } if (ofp.size() < (int32)sizeof(_boot)) Utils::Error(FILE_ERR, BOOTFILE); |