Hans Leidekker : msi: Fix an off-by-one error in STREAMS_find_matching_rows .
Module: wine Branch: master Commit: 19b50cff345de861d1fc04d45e6e7672ed462577 URL: http://source.winehq.org/git/wine.git/?a=commit;h=19b50cff345de861d1fc04d45e... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Thu Feb 4 10:03:21 2010 +0100 msi: Fix an off-by-one error in STREAMS_find_matching_rows. --- 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;
participants (1)
-
Alexandre Julliard