Fixed calculation of buffer length after switch of window text to
unicode.
This commit is contained in:
parent
f96df31096
commit
9fe0e634e5
|
@ -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 */
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue