Expose feof flag in MSVCRT_fread
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Sun Jul 7 13:40:08 CDT 2002
Changelog:
dlls/msvcrt/file.c: MSVCRT_fread
Expose feof flag
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Free Software: If you contribute nothing, expect nothing
--
Index: wine/dlls/msvcrt/file.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/file.c,v
retrieving revision 1.28
diff -u -5 -r1.28 file.c
--- wine/dlls/msvcrt/file.c 5 Jul 2002 21:23:07 -0000 1.28
+++ wine/dlls/msvcrt/file.c 7 Jul 2002 18:33:41 -0000
@@ -1786,10 +1786,15 @@
file->_flag |= MSVCRT__IOREAD;
} else
return 0;
}
if(rcnt) pread = _read(file->_file,ptr, rcnt);
+ if (MSVCRT_flags[file->_file] & MSVCRT__IOEOF)
+ /* expose feof condition in the flags
+ MFC tests file->_flag for feof, and doesn't not call feof())
+ */
+ file->_flag |= MSVCRT__IOEOF;
if (pread <= 0)
pread = 0;
read+=pread;
return read / size;
}
More information about the wine-patches
mailing list