builds/windows/ftsystem.c


Log

Author Commit Date CI Message
Werner Lemberg 65f85237 2023-01-17T09:18:25 Update all copyright notices.
Alexei Podtelezhnikov ed4d0710 2022-04-25T19:05:11 [builds/windows] Simplify non-desktop UWP check. Fixes mingw compilation described in !159. * builds/windows/ftsystem.c: Do not use WINAPI_FAMILY_PARTITION macro.
Werner Lemberg 97cdbb24 2022-03-30T14:06:15 Whitespace.
Carlo Bramini 127c1e83 2022-03-23T22:53:07 [builds/windows] Fix WCE support. * builds/windows/ftsystem.c [_WIN32_WCE]: Include <malloc.h> needed by _alloca.
Steve Lhomme 0574692c 2022-03-23T22:46:15 [build/windows] Improve UWP support. * builds/windows/ftsystem.c [UWP]: Wrap CreateFile2 into CreateFileA.
Steve Lhomme 20ec99be 2022-02-17T13:35:52 [builds/windows] Add support for legacy UWP builds. * builds/windows/ftsystem.c: Add neccessary macro substitutions to enable strict UWP builds. See !141. Co-authored-by: Alexei Podtelezhnikov <apodtele@gmail.com>
Werner Lemberg d0cfb4e1 2022-01-11T10:54:10 Update all copyright notices.
Cameron Cawley 1f951898 2021-12-06T23:08:46 [builds/windows] Guard some non-ancient API. We can support Windows 98 and NT 4.0 in principle... * builds/windows/ftdebug.c, builds/windows/ftsystem.c: Check for the ancient SDK using _WIN32_WINDOWS, _WIN32_WCE, or _WIN32_WINNT.
Alexei Podtelezhnikov b4dddd82 2021-09-22T00:30:03 [base] Initialize stream memory earlier. With Windows memory management tracking heap, it is important to use it during the stream opening fallback. In Unix, the argument is unused, but it is better to set it correctly. * src/base/ftobjs.c (FT_Stream_New): Set memory before calling `FT_Stream_Open`. * builds/windows/ftsystem.c, builds/unix/ftsystem.c (FT_Stream_Open, ft_close_stream_by_free): Call `ft_alloc` and `ft_free` with proper memory argumment.
Alexei Podtelezhnikov 93866bec 2021-09-21T23:14:42 [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.
Alexei Podtelezhnikov 0b429b60 2021-09-17T08:31:27 [builds/windows] Try both wide and narrow `CreateFile` Windows handles wchar_t* UTF-16 and char* ANSI (presently UTF-8) filenames using alternative -A and -W API. We'll try them both when opening a file. This means that you should not worry about about conversions. Fixes #1098 and !76. * builds/windows/ftsystem.c (FT_Stream_Open): Call alternative `CreateFile` in the case of failure.
Alexei Podtelezhnikov 7e26c7a6 2021-09-07T17:06:27 [builds/windows] Use native memory allocation API. * builds/windows/ftsystem.c (ft_alloc, ft_realloc, ft_free): Wrap HeapAlloc, HeapReAlloc, and HeapFree. (FT_New_Memory): Set the heap handle.
Alexei Podtelezhnikov 612925ff 2021-09-01T21:37:21 s/0/NULL/ where appropriate.
Alexei Podtelezhnikov efa1a359 2021-08-30T09:38:25 * builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close.
Carlo Bramini f0f00f7c 2021-08-19T22:14:42 * builds/windows/ftsystem.c (FT_Stream_Open): Support legacy Windows.
Alexei Podtelezhnikov 536a10ac 2021-08-17T22:24:46 * builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.
Alexei Podtelezhnikov 5116f129 2021-08-17T22:08:45 * builds/windows/ftsystem.c (FT_Stream_Open): Support UNICODE compilation.
Werner Lemberg 68940241 2021-02-02T09:38:25 builds/{unix,windows}/ftsystem.c: Sync comments with `src/base/ftsystem.c`. Also some minor code formatting.
Vincent Torri bb33f03a 2021-01-27T06:43:41 * builds/windows/ftsystem.c: Add shared memory support on Windows.