diff options
author | Andrey Nazarov <skuller@skuller.net> | 2007-12-07 19:05:08 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2007-12-07 19:05:08 +0000 |
commit | 7561e98105a9e23dfb73da054468f7c0a6fc2be5 (patch) | |
tree | e636e242de3d368ffd02e6bc39518e2edb8f6b32 /source/sys_unix.c | |
parent | 439dd89a479e2d02fa40a421849c73616f92198e (diff) |
Fixed Windows build.
Fixed a crash in Player Setup menu.
Updated revision to 166.
Removed AC check for 64-bit Windows.
Diffstat (limited to 'source/sys_unix.c')
-rw-r--r-- | source/sys_unix.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/sys_unix.c b/source/sys_unix.c index e70a271..a16b005 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -507,18 +507,20 @@ qboolean Sys_RenameFile( const char *from, const char *to ) { Sys_GetFileInfo ================ */ -fsFileInfo_t *Sys_GetFileInfo( const char *path, fsFileInfo_t *info ) { +qboolean Sys_GetFileInfo( const char *path, fsFileInfo_t *info ) { struct stat st; if( stat( path, &st ) == -1 ) { - return NULL; + return qfalse; } - info->size = st.st_size; - info->ctime = st.st_ctime; - info->mtime = st.st_mtime; + if( info ) { + info->size = st.st_size; + info->ctime = st.st_ctime; + info->mtime = st.st_mtime; + } - return info; + return qtrue; } /* |