msi: Properly advance the patch pointer in msi_check_product_patches.

Fixes patch enumeration when multiple patches are registered for a given product.
This commit is contained in:
Hans Leidekker 2010-07-21 09:48:27 +02:00 committed by Alexandre Julliard
parent 409e2d7105
commit d99b6d3934
1 changed files with 1 additions and 1 deletions

View File

@ -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))
{