msi: Ignore min/max versions if their values are null.
This commit is contained in:
parent
ab111025c0
commit
598a25de82
|
@ -151,27 +151,31 @@ static UINT ITERATE_FindRelatedProducts(MSIRECORD *rec, LPVOID param)
|
|||
(LPBYTE)&check, &sz);
|
||||
/* check min */
|
||||
ver = MSI_RecordGetString(rec,2);
|
||||
if (ver)
|
||||
{
|
||||
comp_ver = msi_version_str_to_dword(ver);
|
||||
r = check - comp_ver;
|
||||
if (r < 0 || (r == 0 && !(attributes &
|
||||
msidbUpgradeAttributesVersionMinInclusive)))
|
||||
if (r < 0 || (r == 0 && !(attributes & msidbUpgradeAttributesVersionMinInclusive)))
|
||||
{
|
||||
RegCloseKey(hukey);
|
||||
index ++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
/* check max */
|
||||
ver = MSI_RecordGetString(rec,3);
|
||||
if (ver)
|
||||
{
|
||||
comp_ver = msi_version_str_to_dword(ver);
|
||||
r = check - comp_ver;
|
||||
if (r > 0 || (r == 0 && !(attributes &
|
||||
msidbUpgradeAttributesVersionMaxInclusive)))
|
||||
if (r > 0 || (r == 0 && !(attributes & msidbUpgradeAttributesVersionMaxInclusive)))
|
||||
{
|
||||
RegCloseKey(hukey);
|
||||
index ++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
/* check language*/
|
||||
sz = sizeof(DWORD);
|
||||
|
|
Loading…
Reference in New Issue