Commit 2218c6e4 authored by Kouji Sasaki's avatar Kouji Sasaki Committed by Alexandre Julliard

Corrected the priority of operators for LISTVIEW_GetNextItem

function.
parent 0603a15f
...@@ -5736,7 +5736,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags) ...@@ -5736,7 +5736,7 @@ static INT LISTVIEW_GetNextItem(LISTVIEW_INFO *infoPtr, INT nItem, UINT uFlags)
* so it's worth optimizing */ * so it's worth optimizing */
if (uFlags & LVNI_FOCUSED) 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; return (infoPtr->nFocusedItem == nItem) ? -1 : infoPtr->nFocusedItem;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment