https://git.reactos.org/?p=reactos.git;a=commitdiff;h=de330367661338396ae89…
commit de330367661338396ae896ae061ed03a20ac170e
Author: Serge Gautherie <reactos-git_serge_171003(a)gautherie.fr>
AuthorDate: Fri Nov 5 18:24:21 2021 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Sun Nov 21 13:07:59 2021 -0500
[RICHED20] select_style(): Check font_cache too
Already upstreamed as wine-6.21-347-g177f808.
CORE-17843
---
dll/win32/riched20/style.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/riched20/style.c b/dll/win32/riched20/style.c
index 8b9c2126b1b..37c0509621f 100644
--- a/dll/win32/riched20/style.c
+++ b/dll/win32/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;