Sometimes the text on a tab control got truncated.

This commit is contained in:
Abey George 1999-07-10 11:35:20 +00:00 committed by Alexandre Julliard
parent 318832ea8e
commit 39b4e098b3

View File

@ -1352,7 +1352,7 @@ TAB_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
len=lstrlenA (tabItem->pszText);
if (len>wineItem->cchTextMax)
wineItem->pszText= COMCTL32_ReAlloc (wineItem->pszText, len+1);
lstrcpynA (wineItem->pszText, tabItem->pszText, len);
lstrcpyA (wineItem->pszText, tabItem->pszText);
}
return TRUE;