msi: Don't read past the end of the patch list in MsiApplyMultiplePatchesW.

This commit is contained in:
Hans Leidekker 2015-04-10 12:57:40 +02:00 committed by Alexandre Julliard
parent 2eda884bd7
commit 17b80c8ec0
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ UINT WINAPI MsiApplyMultiplePatchesW(LPCWSTR szPatchPackages,
r = MSI_ApplyPatchW(patch, szProductCode, szPropertiesList);
msi_free(patch);
if (r != ERROR_SUCCESS)
if (r != ERROR_SUCCESS || !*end)
break;
beg = ++end;