From: solar Date: Thu, 1 Oct 2009 05:42:08 +0000 (+0000) Subject: Wrong return code. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0fa2be3a093c7f33c57086d3233d6bc1a7a6ca87;p=fw%2Fpdclib Wrong return code. git-svn-id: https://srv7.svn-repos.de/dev34/pdclib/trunk@376 546481bc-9713-0410-bf18-d3337bbf4a3e --- diff --git a/functions/stdio/fseek.c b/functions/stdio/fseek.c index e3d3e77..43789c8 100644 --- a/functions/stdio/fseek.c +++ b/functions/stdio/fseek.c @@ -26,7 +26,7 @@ int fseek( struct _PDCLIB_file_t * _PDCLIB_restrict stream, long offset, int whe { stream->status &= ~ ( _PDCLIB_FREAD | _PDCLIB_FWRITE ); } - return _PDCLIB_seek( stream, offset, whence ); + return ( _PDCLIB_seek( stream, offset, whence ) == offset ) ? 0 : EOF; } #endif