[PATCH 0/1] MR7553: winecfg: Use wide character string literal for "Tahoma".
From: Alex Henrie <alexhenrie24(a)gmail.com> --- programs/winecfg/x11drvdlg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/programs/winecfg/x11drvdlg.c b/programs/winecfg/x11drvdlg.c index aea52717a78..9db8da5a4f4 100644 --- a/programs/winecfg/x11drvdlg.c +++ b/programs/winecfg/x11drvdlg.c @@ -317,7 +317,6 @@ static void update_font_preview(HWND hDlg) if (dpi >= MINDPI && dpi <= MAXDPI) { - static const WCHAR tahomaW[] = {'T','a','h','o','m','a',0}; LOGFONTW lf; HFONT hfont; @@ -325,8 +324,8 @@ static void update_font_preview(HWND hDlg) GetObjectW(hfont, sizeof(lf), &lf); - if (wcscmp(lf.lfFaceName, tahomaW) != 0) - lstrcpyW(lf.lfFaceName, tahomaW); + if (wcscmp(lf.lfFaceName, L"Tahoma") != 0) + wcscpy(lf.lfFaceName, L"Tahoma"); else DeleteObject(hfont); lf.lfHeight = MulDiv(-10, dpi, 72); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7553
participants (2)
-
Alex Henrie -
Alex Henrie (@alexhenrie)