From 2218c6e479d843c264f044f68a5518e8f3338b0f Mon Sep 17 00:00:00 2001 From: Kouji Sasaki Date: Wed, 25 May 2005 09:53:46 +0000 Subject: [PATCH] Corrected the priority of operators for LISTVIEW_GetNextItem function. --- dlls/comctl32/listview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c index 3c6006b5a19..7594e058056 100644 --- a/dlls/comctl32/listview.c +++ b/dlls/comctl32/listview.c @@ -5736,7 +5736,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags) * so it's worth optimizing */ if (uFlags & LVNI_FOCUSED) { - if (!(LISTVIEW_GetItemState(infoPtr, infoPtr->nFocusedItem, uMask) & uMask) == uMask) return -1; + if ((LISTVIEW_GetItemState(infoPtr, infoPtr->nFocusedItem, uMask) & uMask) != uMask) return -1; return (infoPtr->nFocusedItem == nItem) ? -1 : infoPtr->nFocusedItem; } -- 2.11.4.GIT