mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 19:30:08 +01:00
filesystem: fixed uninitialized pointers in FS_FindFile when fs_ext_path enabled
This commit is contained in:
parent
65671d8788
commit
a2971ce939
@ -1824,6 +1824,13 @@ searchpath_t *FS_FindFile( const char *name, int *index, qboolean gamedironly )
|
||||
search = &fs_directpath;
|
||||
memset( search, 0, sizeof( searchpath_t ));
|
||||
|
||||
search->printinfo = FS_PrintInfo_DIR;
|
||||
search->close = FS_Close_DIR;
|
||||
search->openfile = FS_OpenFile_DIR;
|
||||
search->filetime = FS_FileTime_DIR;
|
||||
search->findfile = FS_FindFile_DIR;
|
||||
search->search = FS_Search_DIR;
|
||||
|
||||
// root folder has a more priority than netpath
|
||||
Q_strncpy( search->filename, fs_rootdir, sizeof( search->filename ));
|
||||
Q_strcat( search->filename, PATH_SPLITTER );
|
||||
|
Loading…
Reference in New Issue
Block a user