Nikolay Sivov : comctl32/listview: Fix infinite loop case for full item range as a first search range.
Alexandre Julliard
julliard at winehq.org
Fri Aug 20 10:19:13 CDT 2010
Module: wine
Branch: master
Commit: ce5a06c1b0428347048f9b37f96a3fda0dceef47
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce5a06c1b0428347048f9b37f96a3fda0dceef47
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Fri Aug 20 11:03:25 2010 +0400
comctl32/listview: Fix infinite loop case for full item range as a first search range.
---
dlls/comctl32/listview.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index 6dbcf4a..11d8d98 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -1849,8 +1849,9 @@ static INT LISTVIEW_ProcessLetterKeys(LISTVIEW_INFO *infoPtr, WPARAM charCode, L
}
}
- /* found something or second search completed with any result */
- if (nItem != -1 || endidx != infoPtr->nItemCount)
+ if ( nItem != -1 || /* found something */
+ endidx != infoPtr->nItemCount || /* second search done */
+ (startidx == 0 && endidx == infoPtr->nItemCount) /* full range for first search */ )
break;
};
}
More information about the wine-cvs
mailing list