aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2014-11-23 18:03:28 +0200
committerFilippos Karapetis2014-11-23 18:03:28 +0200
commite70b64334d8c19b95886412409ca8ab1edc22abb (patch)
tree1fc6c6f95cd5160ebd373fc2c30d528b9a70c9f0
parent26fc4be311f5e0cf9a92a64ca412b8b12858e324 (diff)
parent3fb4ab1377d15bb0fca78c5964531d3f2d49f986 (diff)
downloadscummvm-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.cpp2
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() {