user32: Avoid hardcoding the Unicode string literal lengths.

Francois Gouget fgouget at free.fr
Fri Dec 16 06:06:35 CST 2011


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

diff --git a/dlls/user32/uitools.c b/dlls/user32/uitools.c
index 1c1c679..2a3b9e4 100644
--- a/dlls/user32/uitools.c
+++ b/dlls/user32/uitools.c
@@ -932,7 +932,7 @@ static BOOL UITOOLS95_DrawFrameCaption(HDC dc, LPRECT r, UINT uFlags)
     int colorIdx = uFlags & DFCS_INACTIVE ? COLOR_BTNSHADOW : COLOR_BTNTEXT;
     int xc = (myr.left+myr.right)/2;
     int yc = (myr.top+myr.bottom)/2;
-    WCHAR str[2] = {0, 0};
+    WCHAR str[] = {0, 0};
     static const WCHAR glyphFontName[] = { 'M','a','r','l','e','t','t',0 };
     UINT alignsave;
     int bksave;
-- 
1.7.7.3




More information about the wine-patches mailing list