https://bugs.winehq.org/show_bug.cgi?id=37483
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Hi, Bruno.
I don't see a problem with this. The idea here:
--- if (infoPtr->dwStyle & LVS_OWNERDATA) { /* a virtual listview only stores selection and focus */ if (lpLVItem->mask & ~LVIF_STATE) return FALSE; lpItem = NULL; } ---
is to return if any mask bit but LVIF_STATE is set. So lpItem is only NULL when lpLVItem->mask == LVIF_STATE. Later mask is always tested before accessing lpItem. I'll keep this open waiting for your reply, but I think there's no bug.