Commit 39b4e098 authored by Abey George's avatar Abey George Committed by Alexandre Julliard

Sometimes the text on a tab control got truncated.

parent 318832ea
...@@ -1352,7 +1352,7 @@ TAB_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam) ...@@ -1352,7 +1352,7 @@ TAB_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
len=lstrlenA (tabItem->pszText); len=lstrlenA (tabItem->pszText);
if (len>wineItem->cchTextMax) if (len>wineItem->cchTextMax)
wineItem->pszText= COMCTL32_ReAlloc (wineItem->pszText, len+1); wineItem->pszText= COMCTL32_ReAlloc (wineItem->pszText, len+1);
lstrcpynA (wineItem->pszText, tabItem->pszText, len); lstrcpyA (wineItem->pszText, tabItem->pszText);
} }
return TRUE; return TRUE;
......
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