Commit 17b80c8e authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

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

parent 2eda884b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment