Emulator Issues #9273
openReplace stdio usage by IOFile, imlpement IOFile on top of win32 CreateFile/ReadFile/... on Windows
0%
Description
Microsoft's CRT still ships with the fread bug from #8930 causing Dolphin crashes on Windows. We work around it by monkey-patching known buggy versions of the CRT libraries. However, that will not work anymore if MS releases a new version of the CRT with the bug. This means that Dolphin 5.0 might end up not working anymore on some setups, leaving us with no alternative other than release a 5.0.1 with a new monkey-patch added.
To avoid this happening, I suggest we should stop using stdio on Windows. All stdio usage should switch to use IOFile instead, and IOFile on Windows should be implemented on top of the win32 CreateFile, ReadFile, WriteFile, ... API which is less likely to have issues of the sort.
Updated by delroth almost 9 years ago
Too much work and nobody working on it. Let's just hope MS fixed the bug in all subsequent versions of the CRT.
Updated by Billiard26 almost 6 years ago
Making IOFile use CreateFile and friends would be easy.
We don't make much use of stdio directly but does Microsoft implement fstream in terms of stdio?
There are a handful of fstream usages.