Expose feof flag in MSVCRT_fread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
	dlls/msvcrt/file.c: MSVCRT_fread
	Expose feof flag 
-- 
Uwe Bonnes                bon@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;
 }


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux