mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-02 05:01:58 +00:00
Validate the file reader in DoOpenResourceFile.
This commit is contained in:
parent
e6fa87cd22
commit
5782206a91
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ static int nulPrintf(FSMessageLevel msg, const char* fmt, ...)
|
|||
|
||||
FResourceFile *FResourceFile::DoOpenResourceFile(const char *filename, FileReader &file, bool containeronly, LumpFilterInfo* filter, FileSystemMessageFunc Printf, StringPool* sp)
|
||||
{
|
||||
if (!file.isOpen()) return nullptr;
|
||||
if (Printf == nullptr) Printf = nulPrintf;
|
||||
for(auto func : funcs)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue