[08/10] msi: Fix an off-by-one error in STREAMS_find_matching_rows.
Hans Leidekker
hans at codeweavers.com
Thu Feb 4 03:03:21 CST 2010
---
dlls/msi/streams.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/msi/streams.c b/dlls/msi/streams.c
index 76b38cd..8d2e748 100644
--- a/dlls/msi/streams.c
+++ b/dlls/msi/streams.c
@@ -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;
--
1.6.3.3
More information about the wine-patches
mailing list