Module: wine Branch: master Commit: a9c03e6d5b4741c204ca8185ce231d80dbb16d58 URL: https://gitlab.winehq.org/wine/wine/-/commit/a9c03e6d5b4741c204ca8185ce231d8...
Author: Francois Gouget fgouget@codeweavers.com Date: Fri Jan 20 11:24:25 2023 +0100
win32u: Document the font_lock handling in font_EnumFonts().
Wine-Bug: https://bugs.winehq.org//show_bug.cgi?id=49202
---
dlls/win32u/font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/win32u/font.c b/dlls/win32u/font.c index 832ffc0bed0..c3ba1a9a377 100644 --- a/dlls/win32u/font.c +++ b/dlls/win32u/font.c @@ -3551,7 +3551,7 @@ static BOOL CDECL font_EnumFonts( PHYSDEV dev, LOGFONTW *lf, FONTENUMPROCW proc, { if (!face_matches( family->family_name, face, face_name )) continue; if (!enum_face_charsets( family, face, enum_charsets, count, proc, lparam, orig_name )) - return FALSE; + return FALSE; /* enum_face_charsets() unlocked font_lock */ } } } @@ -3562,7 +3562,7 @@ static BOOL CDECL font_EnumFonts( PHYSDEV dev, LOGFONTW *lf, FONTENUMPROCW proc, { face = LIST_ENTRY( list_head(get_family_face_list(family)), struct gdi_font_face, entry ); if (!enum_face_charsets( family, face, enum_charsets, count, proc, lparam, NULL )) - return FALSE; + return FALSE; /* enum_face_charsets() unlocked font_lock */ } } pthread_mutex_unlock( &font_lock );