TREEVIEW_GetItemA should ignore stateMask.

This commit is contained in:
Mike Hearn 2003-03-26 23:35:50 +00:00 committed by Alexandre Julliard
parent 1c481f3da8
commit b27587dd0a
1 changed files with 6 additions and 2 deletions

View File

@ -2016,8 +2016,12 @@ TREEVIEW_GetItemA(TREEVIEW_INFO *infoPtr, LPTVITEMEXA tvItem)
if (tvItem->mask & TVIF_SELECTEDIMAGE)
tvItem->iSelectedImage = wineItem->iSelectedImage;
if (tvItem->mask & TVIF_STATE)
tvItem->state = wineItem->state & tvItem->stateMask;
if (tvItem->mask & TVIF_STATE) {
/* Careful here - Windows ignores the stateMask when you get the state
That contradicts the documentation, but makes more common sense, masking
retrieval in this way seems overkill */
tvItem->state = wineItem->state;
}
if (tvItem->mask & TVIF_TEXT)
lstrcpynA(tvItem->pszText, wineItem->pszText, tvItem->cchTextMax);