From 3d55b590b5b929d78ae937564f344021b13878ff Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 14 Feb 2008 14:39:07 +0000 Subject: [PATCH] user32: Fix incorrect character count passed to GetWindowTextW in ICONTITLE_Paint. --- dlls/user32/icontitle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/icontitle.c b/dlls/user32/icontitle.c index d6995badb6e..aa8ebc590ad 100644 --- a/dlls/user32/icontitle.c +++ b/dlls/user32/icontitle.c @@ -181,7 +181,7 @@ static BOOL ICONTITLE_Paint( HWND hwnd, HWND owner, HDC hDC, BOOL bActive ) { WCHAR buffer[80]; - INT length = GetWindowTextW( owner, buffer, sizeof(buffer) ); + INT length = GetWindowTextW( owner, buffer, sizeof(buffer)/sizeof(buffer[0]) ); SetTextColor( hDC, textColor ); SetBkMode( hDC, TRANSPARENT );