https://bugs.winehq.org/show_bug.cgi?id=44163
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Created attachment 59928 --> https://bugs.winehq.org/attachment.cgi?id=59928 Minimal test case.
It looks like FarCry executes these steps: - open some file (_wfsopen) - get fd for this file (_fileno) - open this file again via the fd (_wfdopen) - closing second file pointer. - closing first file pointer - crashes as it thinks the file is already closed.
Attached test program tries to show this. In wine it crashes like FarCry, on Windows no crash happens.