Module: wine Branch: master Commit: d99b6d393404ddaa9211e19f79b4ea5c8da0b083 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d99b6d393404ddaa9211e19f79... Author: Hans Leidekker <hans(a)codeweavers.com> Date: Wed Jul 21 09:48:27 2010 +0200 msi: Properly advance the patch pointer in msi_check_product_patches. Fixes patch enumeration when multiple patches are registered for a given product. --- dlls/msi/registry.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 518303f..2a84e11 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -1918,7 +1918,7 @@ static UINT msi_check_product_patches(LPCWSTR prodcode, LPCWSTR usersid, goto done; ptr = patches; - for (ptr = patches; *ptr && r == ERROR_NO_MORE_ITEMS; ptr += lstrlenW(ptr)) + for (ptr = patches; *ptr && r == ERROR_NO_MORE_ITEMS; ptr += lstrlenW(ptr) + 1) { if (!unsquash_guid(ptr, patch)) {