Skip to content

Commit

Permalink
Validate the file reader in DoOpenResourceFile.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Oct 10, 2024
1 parent e6fa87c commit 5782206
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/common/filesystem/source/resourcefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 5782206

Please sign in to comment.