mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +00:00
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 )
|
if( length )
|
||||||
{
|
{
|
||||||
str = HeapAlloc( GetProcessHeap(), 0, length + 1 );
|
str = HeapAlloc( GetProcessHeap(), 0, (length + 1) * sizeof(WCHAR) );
|
||||||
lstrcpyW( str, wnd->owner->text );
|
lstrcpyW( str, wnd->owner->text );
|
||||||
while( str[length - 1] == ' ' ) /* remove trailing spaces */
|
while( str[length - 1] == ' ' ) /* remove trailing spaces */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user