user32: Fix incorrect character count passed to GetWindowTextW in ICONTITLE_Paint.
This commit is contained in:
parent
151cc8bd05
commit
3d55b590b5
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue