user32: Fix incorrect character count passed to GetWindowTextW in ICONTITLE_Paint.

This commit is contained in:
Rob Shearman 2008-02-14 14:39:07 +00:00 committed by Alexandre Julliard
parent 151cc8bd05
commit 3d55b590b5
1 changed files with 1 additions and 1 deletions

View File

@ -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 );