Commit 19b50cff authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 95a21c27
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment