diff options
Diffstat (limited to 'c')
-rw-r--r-- | c/episodelistview.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/c/episodelistview.c b/c/episodelistview.c index 464313f..1afee3e 100644 --- a/c/episodelistview.c +++ b/c/episodelistview.c @@ -167,9 +167,8 @@ ElvSelectRecent() i = 0; lvfi.flags = LVFI_PARAM; lvfi.lParam = iEpisode; - do - lvfi.lParam = iEpisode+i; - while ((iItem = ListView_FindItem(HElv, -1, &lvfi)) == -1 && i++ < 100); + while ((iItem = ListView_FindItem(HElv, -1, &lvfi)) == -1 && i++ < 100) + lvfi.lParam = ++iEpisode; if (iItem == -1) return; s: ListView_SetItemState(HElv, -1, LVIF_STATE, LVIS_SELECTED); |