mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:21:08 +00:00
msvcrt: Clear end-of-file flag on fseek.
This commit is contained in:
parent
994af69cac
commit
60501aa93e
|
@ -918,6 +918,8 @@ int CDECL MSVCRT_fseek(MSVCRT_FILE* file, long offset, int whence)
|
|||
if(file->_flag & MSVCRT__IORW) {
|
||||
file->_flag &= ~(MSVCRT__IOREAD|MSVCRT__IOWRT);
|
||||
}
|
||||
/* Clear end of file flag */
|
||||
file->_flag &= ~MSVCRT__IOEOF;
|
||||
return (_lseek(file->_file,offset,whence) == -1)?-1:0;
|
||||
}
|
||||
|
||||
|
|
|
@ -241,7 +241,7 @@ static void test_readmode( BOOL ascii_mode )
|
|||
ok(fread(buffer,1,1,file)==0,"fread failure in %s\n", IOMODE);
|
||||
ok(feof(file)!=0,"feof failure in %s\n", IOMODE);
|
||||
ok(fseek(file,-3,SEEK_CUR)==0,"seek failure in %s\n", IOMODE);
|
||||
todo_wine ok(feof(file)==0,"feof failure in %s\n", IOMODE);
|
||||
ok(feof(file)==0,"feof failure in %s\n", IOMODE);
|
||||
ok(fread(buffer,2,1,file)==1,"fread failed in %s\n", IOMODE);
|
||||
ok(feof(file)==0,"feof failure in %s\n", IOMODE);
|
||||
ok(fread(buffer,2,1,file)==0,"fread failure in %s\n",IOMODE);
|
||||
|
|
Loading…
Reference in a new issue