msi: Don't read past the end of the patch list in MsiApplyMultiplePatchesW.
This commit is contained in:
parent
2eda884bd7
commit
17b80c8ec0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue