commit | 93866bec77bee6479d8103175562c4fe472c3529 | [log] [tgz] |
---|---|---|
author | Alexei Podtelezhnikov <apodtele@gmail.com> | Tue Sep 21 23:14:42 2021 -0400 |
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | Tue Sep 21 23:14:42 2021 -0400 |
tree | 17e5610aa54c78f7149664499edc267dc4a21719 | |
parent | 892e7eadc9d5e882162273c8e1c375a55baebe78 [diff] |
[builds/windows] Revert back to `CreateFileA` only. Calling `CreateFileW` without making sure that the patname is really `wchar_t` is a bad idea and can lead to unpredictable overreads. For Windows CE, we impelemnt the missing API. Fixes #1098 and !76 again. * builds/windows/ftsystem.c (FT_Stream_Open): Call `CreateFileA`. [_WIN32_WCE] (CreateFileA, FileSizeEx): Implement missing interfaces.