msi: Fix an off-by-one error in STREAMS_find_matching_rows.

This commit is contained in:
Hans Leidekker 2010-02-04 10:03:21 +01:00 committed by Alexandre Julliard
parent 95a21c27da
commit 19b50cff34
1 changed files with 2 additions and 1 deletions

View File

@ -450,7 +450,8 @@ static UINT STREAMS_find_matching_rows(struct tagMSIVIEW *view, UINT col,
}
*handle = UlongToPtr(++index);
if (index >= sv->num_rows)
if (index > sv->num_rows)
return ERROR_NO_MORE_ITEMS;
return ERROR_SUCCESS;