Commit 977392c4 authored by David Grant's avatar David Grant Committed by Alexandre Julliard

- Proper initialization of cchTextMax field was added for

TVN_GETDISPINFO notification message. - TVM_SETITEM should update 'mask' field to synchronize it with current item state.
parent c6a03a70
......@@ -924,6 +924,8 @@ TREEVIEW_SetItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
}
}
wineItem->mask |= tvItem->mask;
return TRUE;
}
......@@ -2433,6 +2435,7 @@ TREEVIEW_SendDispInfoNotify (HWND hwnd, TREEVIEW_ITEM *wineItem,
tvdi.item.state = wineItem->state;
tvdi.item.lParam = wineItem->lParam;
tvdi.item.pszText = COMCTL32_Alloc (128*sizeof(char));
tvdi.item.cchTextMax = 128;
buf = tvdi.item.pszText;
retval=(BOOL)SendMessageA (
......
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