http://bugs.winehq.org/show_bug.cgi?id=2337
Summary: Strange IO behaviour, broken seek/rewind? Product: Wine Version: 20040615 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: halfdog@gmx.at
After upgrading wine to 20040615 from 20031212-1fc1winehq a program that used to work now produced messages saying that its temporary files are corrupted. These files are rather frequently read and written by the software.
With the old software the file was like 0000000: 4652 3542 0a05 0000 0026 7b00 3200 4300 FR5B.....&{.2.C. .... 00000c0: 0100 0100 4652 3542 ....FR5B
with the new version 0000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ all bytes zero to 00000a0: 0000 0000 0000 0046 5235 420a 0200 0000 .......FR5B..... .... 0000140: 0000 0100 0000 0000 0100 4652 3542 ..........FR5B
All files written by this program have some heading of only zero bytes and then start normally so it seems that wine failed to truncate the file correctly or the seek didn't work.
The problem happens with Finereader (seems to be C++ compiled to ix86), multiple saves with notepad to the same file work. So perhaps the api changed slightly and finereader uses the file io calls with uncommon combination of arguments/parameters.