diff options
author | Filippos Karapetis | 2014-11-23 18:03:28 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-11-23 18:03:28 +0200 |
commit | e70b64334d8c19b95886412409ca8ab1edc22abb (patch) | |
tree | 1fc6c6f95cd5160ebd373fc2c30d528b9a70c9f0 | |
parent | 26fc4be311f5e0cf9a92a64ca412b8b12858e324 (diff) | |
parent | 3fb4ab1377d15bb0fca78c5964531d3f2d49f986 (diff) | |
download | scummvm-rg350-e70b64334d8c19b95886412409ca8ab1edc22abb.tar.gz scummvm-rg350-e70b64334d8c19b95886412409ca8ab1edc22abb.tar.bz2 scummvm-rg350-e70b64334d8c19b95886412409ca8ab1edc22abb.zip |
Merge pull request #534 from skristiansson/pr/loadstream
COMMON: make XMLParser::loadStream() fail when stream is null
-rwxr-xr-x[-rw-r--r--] | common/xmlparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/xmlparser.cpp b/common/xmlparser.cpp index c80d5e15be..67a3d36cec 100644..100755 --- a/common/xmlparser.cpp +++ b/common/xmlparser.cpp @@ -69,7 +69,7 @@ bool XMLParser::loadBuffer(const byte *buffer, uint32 size, DisposeAfterUse::Fla bool XMLParser::loadStream(SeekableReadStream *stream) { _stream = stream; _fileName = "File Stream"; - return true; + return _stream != nullptr; } void XMLParser::close() { |