Aug. 16, 2023
3:26 p.m.
I stumbled onto this while using freopen() for debugging purposes. Basically, freopen() fails if the FILE has been created with an invalid handle. So, this MR contains: - basic tests for freopen (no issue there, just for coverage purposes) - tests for freopen on FILE with invalid handle - fix for freopen -- v2: msvcrt: Fix freopen() on FILE with handle=-2. isfd msvcrt/tests: Add tests for freopen(). https://gitlab.winehq.org/wine/wine/-/merge_requests/3578