Commit 3d55b590 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

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

parent 151cc8bd
...@@ -181,7 +181,7 @@ static BOOL ICONTITLE_Paint( HWND hwnd, HWND owner, HDC hDC, BOOL bActive ) ...@@ -181,7 +181,7 @@ static BOOL ICONTITLE_Paint( HWND hwnd, HWND owner, HDC hDC, BOOL bActive )
{ {
WCHAR buffer[80]; WCHAR buffer[80];
INT length = GetWindowTextW( owner, buffer, sizeof(buffer) ); INT length = GetWindowTextW( owner, buffer, sizeof(buffer)/sizeof(buffer[0]) );
SetTextColor( hDC, textColor ); SetTextColor( hDC, textColor );
SetBkMode( hDC, TRANSPARENT ); SetBkMode( hDC, TRANSPARENT );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment