[ros-bugs] [Bug 2910] ftell on read/write file returns wrong value while in read mode
ReactOS.Bugzilla at www.reactos.org
ReactOS.Bugzilla at www.reactos.org
Wed Dec 26 01:47:03 CET 2007
http://www.reactos.org/bugzilla/show_bug.cgi?id=2910
--- Comment #1 from Goplat <mrnobo1024 at yahoo.com> 2007-12-26 01:47:03 CET ---
I looked at the stdio code; ftell itself actually looks fine. The problem is in
how other functions use f->_flag.
I did some testing using Windows msvcrt, and a read/write file seems to never
actually have _IOREAD and _IOWRT set at the same time. Instead, it has _IORW
(0x80) set always, and at most one of _IOREAD and _IOWRT when it is being read
or written. (An fseek clears them, leaving just _IORW.) ReactOS's CRT code
should probably be changed to make its flag handling more like the real msvcrt,
and this "ftell bug" would be fixed automatically.
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the Ros-bugs
mailing list