MSVCRT_fseek: should return 0 on success.

This commit is contained in:
Uwe Bonnes 2002-07-08 19:39:01 +00:00 committed by Alexandre Julliard
parent 577ea0cbc3
commit 73c3033029
1 changed files with 1 additions and 1 deletions

View File

@ -2135,7 +2135,7 @@ int MSVCRT_fseek(MSVCRT_FILE* file, long offset, int whence)
if(file->_flag & MSVCRT__IORW) { if(file->_flag & MSVCRT__IORW) {
file->_flag &= ~(MSVCRT__IOREAD|MSVCRT__IOWRT); file->_flag &= ~(MSVCRT__IOREAD|MSVCRT__IOWRT);
} }
return _lseek(file->_file,offset,whence); return (_lseek(file->_file,offset,whence) == -1)?-1:0;
} }
/********************************************************************* /*********************************************************************