mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msi: Only compare the file version if a version was specified.
This commit is contained in:
parent
45a352a773
commit
f18c6ba28d
@ -657,9 +657,10 @@ static UINT ACTION_FileVersionMatches(const MSISIGNATURE *sig, LPCWSTR filePath,
|
||||
HIWORD(sig->MinVersionLS),
|
||||
LOWORD(sig->MinVersionLS));
|
||||
}
|
||||
else if (info->dwFileVersionMS > sig->MaxVersionMS
|
||||
|| (info->dwFileVersionMS == sig->MaxVersionMS &&
|
||||
info->dwFileVersionLS > sig->MaxVersionLS))
|
||||
else if ((sig->MaxVersionMS || sig->MaxVersionLS) &&
|
||||
(info->dwFileVersionMS > sig->MaxVersionMS ||
|
||||
(info->dwFileVersionMS == sig->MaxVersionMS &&
|
||||
info->dwFileVersionLS > sig->MaxVersionLS)))
|
||||
{
|
||||
TRACE("Greater than maximum version %d.%d.%d.%d\n",
|
||||
HIWORD(sig->MaxVersionMS),
|
||||
|
Loading…
Reference in New Issue
Block a user