Nikolay Sivov (@nsivov) commented about dlls/comctl32/listview.c:
/* if the app stores all the data, handle it separately */ if (infoPtr->dwStyle & LVS_OWNERDATA) {
- dispInfo.item.state = 0;
if ((lpLVItem->mask & LVIF_STATE)) lpLVItem->state = 0;
Remove extra parentheses please, the rest seems fine.