Francois Gouget : gdi32: Avoid hardcoding the Unicode string literal lengths.

Alexandre Julliard julliard at winehq.org
Fri Dec 16 11:22:55 CST 2011


Module: wine
Branch: master
Commit: 2ae10acb615b2778dbc645126bd22bc298293e82
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2ae10acb615b2778dbc645126bd22bc298293e82

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Dec 16 13:08:31 2011 +0100

gdi32: Avoid hardcoding the Unicode string literal lengths.

---

 dlls/gdi32/freetype.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 9762230..9b07b97 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -410,7 +410,7 @@ static const WCHAR FixedSys_Value[] = {'F','I','X','E','D','F','O','N','.','F','
 static const WCHAR System_Value[] = {'F','O','N','T','S','.','F','O','N','\0'};
 static const WCHAR OEMFont_Value[] = {'O','E','M','F','O','N','T','.','F','O','N','\0'};
 
-static const WCHAR * const SystemFontValues[4] = {
+static const WCHAR * const SystemFontValues[] = {
     System_Value,
     OEMFont_Value,
     FixedSys_Value,




More information about the wine-cvs mailing list