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

View file

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