mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-31 07:53:36 +00:00
COMMON: make XMLParser::loadStream() fail when stream is null
Some users of this method relies on it to fail when an invalid stream is passed to it (E.g. VirtualKeyboard::openPack).
This commit is contained in:
parent
f94f48ae2b
commit
3fb4ab1377
2
common/xmlparser.cpp
Normal file → Executable file
2
common/xmlparser.cpp
Normal file → Executable file
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user