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.
From: Rémi Bernon rbernon@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) {
This merge request was approved by Nikolay Sivov.