mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-05 03:14:06 +00:00
msi: Fix an off-by-one error in STREAMS_find_matching_rows.
This commit is contained in:
parent
95a21c27da
commit
19b50cff34
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue