diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-09-15 00:19:22 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-09-15 00:19:22 +0000 |
commit | a3f687b44d22868f91d96bd7c2b9638a2c68277f (patch) | |
tree | 6eb4177e277efede03afeb542db96b3d38251243 /code/qcommon | |
parent | 8296a890684cf72ad241b4ad926003d69606c247 (diff) | |
download | ioquake3-aero-a3f687b44d22868f91d96bd7c2b9638a2c68277f.tar.gz ioquake3-aero-a3f687b44d22868f91d96bd7c2b9638a2c68277f.zip |
Fixed infinite recursion of writing crashlog because we're out of file handles.
Fixes Bugzilla #3772.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1602 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r-- | code/qcommon/files.c | 2 | ||||
-rw-r--r-- | code/qcommon/qcommon.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/code/qcommon/files.c b/code/qcommon/files.c index 1d2ae18..7bbfc45 100644 --- a/code/qcommon/files.c +++ b/code/qcommon/files.c @@ -478,7 +478,7 @@ FS_CreatePath Creates any directories needed to store the given filename ============ */ -static qboolean FS_CreatePath (char *OSPath) { +qboolean FS_CreatePath (char *OSPath) { char *ofs; // make absolutely sure that it can't back up the path diff --git a/code/qcommon/qcommon.h b/code/qcommon/qcommon.h index e9b9037..a2d8106 100644 --- a/code/qcommon/qcommon.h +++ b/code/qcommon/qcommon.h @@ -602,6 +602,7 @@ void FS_FreeFileList( char **list ); qboolean FS_FileExists( const char *file ); +qboolean FS_CreatePath (char *OSPath); char *FS_BuildOSPath( const char *base, const char *game, const char *qpath ); int FS_LoadStack( void ); |