Alex Henrie : gdi32: Turn variable 'fake_nameW' into a static constant.
Alexandre Julliard
julliard at winehq.org
Mon Dec 3 15:28:52 CST 2018
Module: wine
Branch: master
Commit: 235063d862a1c5489dbabe022e8d55554425a8b9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=235063d862a1c5489dbabe022e8d55554425a8b9
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Fri Nov 30 00:14:04 2018 -0700
gdi32: Turn variable 'fake_nameW' into a static constant.
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/gdi32/freetype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index f50c163..87c55e0 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -7837,7 +7837,7 @@ static BOOL get_outline_text_metrics(GdiFont *font)
full_nameW = get_face_name( ft_face, TT_NAME_ID_UNIQUE_ID, GetSystemDefaultLangID() );
if (!full_nameW)
{
- WCHAR fake_nameW[] = {'f','a','k','e',' ','n','a','m','e', 0};
+ static const WCHAR fake_nameW[] = {'f','a','k','e',' ','n','a','m','e', 0};
FIXME("failed to read full_nameW for font %s!\n", wine_dbgstr_w(font->name));
full_nameW = strdupW(fake_nameW);
}
More information about the wine-cvs
mailing list