From 7561e98105a9e23dfb73da054468f7c0a6fc2be5 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Fri, 7 Dec 2007 19:05:08 +0000 Subject: Fixed Windows build. Fixed a crash in Player Setup menu. Updated revision to 166. Removed AC check for 64-bit Windows. --- source/sys_unix.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source/sys_unix.c') 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; } /* -- cgit v1.2.3