|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
612925ff
|
2021-09-01T21:37:21
|
|
s/0/NULL/ where appropriate.
|
|
efa1a359
|
2021-08-30T09:38:25
|
|
* builds/windows/ftsystem.c (FT_Stream_Open): Fix double-close.
|
|
f0f00f7c
|
2021-08-19T22:14:42
|
|
* builds/windows/ftsystem.c (FT_Stream_Open): Support legacy Windows.
|
|
536a10ac
|
2021-08-17T22:24:46
|
|
* builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.
|
|
5116f129
|
2021-08-17T22:08:45
|
|
* builds/windows/ftsystem.c (FT_Stream_Open): Support UNICODE compilation.
|
|
68940241
|
2021-02-02T09:38:25
|
|
builds/{unix,windows}/ftsystem.c: Sync comments with `src/base/ftsystem.c`.
Also some minor code formatting.
|
|
bb33f03a
|
2021-01-27T06:43:41
|
|
* builds/windows/ftsystem.c: Add shared memory support on Windows.
|