Hans Leidekker : msi: Properly advance the patch pointer in msi_check_product_patches.
Alexandre Julliard
julliard at winehq.org
Wed Jul 21 10:54:59 CDT 2010
Module: wine
Branch: master
Commit: d99b6d393404ddaa9211e19f79b4ea5c8da0b083
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d99b6d393404ddaa9211e19f79b4ea5c8da0b083
Author: Hans Leidekker <hans at 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))
{
More information about the wine-cvs
mailing list