[PATCH 0/1] MR2005: dwrite: Statically init the system_fallback locale list.
To avoid a crash on DLL unload if it wasn't initialized. Found while running the kernel32:loader tests with warn+heap (somehow?). The dwrite DLL is unloaded before the list has been initialized and it crashes, failing some tests. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2005
From: Rémi Bernon <rbernon(a)codeweavers.com> To avoid a crash on DLL unload if it wasn't initialized. --- dlls/dwrite/analyzer.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c index 5489efa93b8..4e503eb8b5c 100644 --- a/dlls/dwrite/analyzer.c +++ b/dlls/dwrite/analyzer.c @@ -551,7 +551,10 @@ struct dwrite_fontfallback_builder size_t mappings_size; }; -static struct fallback_data system_fallback; +static struct fallback_data system_fallback = +{ + .locales = LIST_INIT(system_fallback.locales), +}; static void release_fallback_mapping(struct fallback_mapping *mapping) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/2005
This merge request was approved by Nikolay Sivov. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2005
participants (2)
-
Nikolay Sivov (@nsivov) -
Rémi Bernon