[8/8] msi: Properly advance the patch pointer in msi_check_product_patches.
Hans Leidekker
hans at codeweavers.com
Wed Jul 21 02:48:27 CDT 2010
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))
{
--
1.7.0.4
More information about the wine-patches
mailing list