From 7ec50f12252b4dfb97f3249ccf05a771b98785c1 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Wed, 2 Apr 2008 23:03:09 +0000 Subject: Use size_t instead of int where possible. Added initial support for Win64 port. --- source/gl_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/gl_main.c') diff --git a/source/gl_main.c b/source/gl_main.c index f53d2ee..76e78fd 100644 --- a/source/gl_main.c +++ b/source/gl_main.c @@ -539,7 +539,7 @@ static char *screenshot_path( char *buffer, const char *ext ) { // for( i = 0; i < 1000; i++ ) { Com_sprintf( buffer, MAX_OSPATH, SCREENSHOTS_DIRECTORY"/quake%03d%s", i, ext ); - if( fs.LoadFileEx( buffer, NULL, FS_PATH_GAME ) == -1 ) { + if( fs.LoadFileEx( buffer, NULL, FS_PATH_GAME ) == INVALID_LENGTH ) { return buffer; // file doesn't exist } } -- cgit v1.2.3