Module: wine Branch: master Commit: 8defd5fc3ace1c8542931ff7a2d058da3524015d URL: http://source.winehq.org/git/wine.git/?a=commit;h=8defd5fc3ace1c8542931ff7a2...
Author: Francois Gouget fgouget@free.fr Date: Fri Dec 16 13:06:35 2011 +0100
user32: Avoid hardcoding the Unicode string literal lengths.
---
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;