[PATCH v2 resend 5/6] comctl32/listview: Send LVN_ODSTATECHANGED only for true ranges.
Zhiyi Zhang
zzhang at codeweavers.com
Fri Jun 10 03:13:33 CDT 2022
On 5/26/22 04:00, Angelo Haller wrote:
> From: Angelo Haller <angelo at szanni.org>
>
> Signed-off-by: Angelo Haller <angelo at szanni.org>
> ---
> dlls/comctl32/listview.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
> index 3c3f5af2a27..bb394974906 100644
> --- a/dlls/comctl32/listview.c
> +++ b/dlls/comctl32/listview.c
> @@ -8953,6 +8953,7 @@ static VOID LISTVIEW_SetOwnerDataState(LISTVIEW_INFO *infoPtr, INT nFirst, INT n
> NMLVODSTATECHANGE nmlv;
>
> if (!(infoPtr->dwStyle & LVS_OWNERDATA)) return;
> + if (nFirst == nLast) return;
> if (!item) return;
>
> ZeroMemory(&nmlv, sizeof(nmlv));
Add a test for this as well. You can merge it with the tests for 3/6.
More information about the wine-devel
mailing list