Corrected the priority of operators for LISTVIEW_GetNextItem

function.
This commit is contained in:
Kouji Sasaki 2005-05-25 09:53:46 +00:00 committed by Alexandre Julliard
parent 0603a15f2a
commit 2218c6e479
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}