Fixed calculation of buffer length after switch of window text to

unicode.
This commit is contained in:
Gerard Patel 2000-07-23 13:33:48 +00:00 committed by Alexandre Julliard
parent f96df31096
commit 9fe0e634e5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ static BOOL ICONTITLE_GetTitlePos( WND* wnd, LPRECT lpRect )
if( length )
{
str = HeapAlloc( GetProcessHeap(), 0, length + 1 );
str = HeapAlloc( GetProcessHeap(), 0, (length + 1) * sizeof(WCHAR) );
lstrcpyW( str, wnd->owner->text );
while( str[length - 1] == ' ' ) /* remove trailing spaces */
{