[PATCH v3 5/5] comctl32: LVM_INSERTITEM handler should send notifications with uChanged = LVIF_STATE.
Nikolay Sivov
nsivov at codeweavers.com
Mon Feb 21 03:08:36 CST 2022
On 2/21/22 11:56, Dmitry Timoshkov wrote:
> Nikolay Sivov <nsivov at codeweavers.com> wrote:
>
>>> - nmlv.uChanged = uChanged ? uChanged : lpLVItem->mask;
>>> + /* According to the tests uChanged in the notification for a new item
>>> + * has only LVIF_STATE flag set.
>>> + */
>>> + if (isNew)
>>> + nmlv.uChanged = LVIF_STATE;
>>> + else
>>> + nmlv.uChanged = uChanged ? uChanged : lpLVItem->mask;
>>> nmlv.lParam = item.lParam;
>>>
>> Shorter way I think is to tweak uChanged like this:
>>
>> if (isNew) uChanged &= ~LVIF_STATE;
> I didn't check if this makes the tests run without todo_wine, but if it
> does, then yes, that looks good to me. Are you planning to send your version?
>
Yes, I'll send both 4 and 5 after tests patches get in. I was going to
send patch 4 under your name, since it's meant to be functional
identical. For patch 5, I'll double check if my change works, but a note
that it's based on your work will be definitely there. Is that alright?
More information about the wine-devel
mailing list