[PATCH] riched20: Check font_cache in select_style() too. --- Like the other release_font_cache() calls.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Mon Nov 8 09:14:24 CST 2021


Addendum to wine-4.14-26-g6f1cc1f.

ReactOS-Bug: https://jira.reactos.org/browse/CORE-17843
---
 dlls/riched20/style.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/riched20/style.c b/dlls/riched20/style.c
index 917a5bd..266bb93 100644
--- a/dlls/riched20/style.c
+++ b/dlls/riched20/style.c
@@ -429,7 +429,7 @@ void select_style( ME_Context *c, ME_Style *s )
         c->orig_font = NULL;
     }
 
-    if (c->current_style)
+    if (c->current_style && c->current_style->font_cache)
     {
         release_font_cache( c->current_style->font_cache );
         c->current_style->font_cache = NULL;
-- 
2.10.0.windows.1




More information about the wine-devel mailing list