mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-07 10:34:48 +00:00
FIL_ReadFileTag: use fopenfile
Fixes exec, for example, crashing the game if given a directory. Test: `exec .`
This commit is contained in:
parent
3bd3369fdc
commit
9761ab52d9
1 changed files with 2 additions and 2 deletions
|
@ -273,8 +273,8 @@ size_t FIL_ReadFileTag(char const *name, UINT8 **buffer, INT32 tag)
|
|||
size_t count, length;
|
||||
UINT8 *buf;
|
||||
|
||||
if (FIL_ReadFileOK(name))
|
||||
handle = fopen(name, "rb");
|
||||
//if (FIL_ReadFileOK(name))
|
||||
handle = fopenfile(name, "rb");
|
||||
|
||||
if (!handle)
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue