Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
598a25de
Commit
598a25de
authored
May 24, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Ignore min/max versions if their values are null.
parent
ab111025
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
upgrade.c
dlls/msi/upgrade.c
+18
-14
No files found.
dlls/msi/upgrade.c
View file @
598a25de
...
...
@@ -151,26 +151,30 @@ static UINT ITERATE_FindRelatedProducts(MSIRECORD *rec, LPVOID param)
(
LPBYTE
)
&
check
,
&
sz
);
/* check min */
ver
=
MSI_RecordGetString
(
rec
,
2
);
comp_ver
=
msi_version_str_to_dword
(
ver
);
r
=
check
-
comp_ver
;
if
(
r
<
0
||
(
r
==
0
&&
!
(
attributes
&
msidbUpgradeAttributesVersionMinInclusive
)))
if
(
ver
)
{
RegCloseKey
(
hukey
);
index
++
;
continue
;
comp_ver
=
msi_version_str_to_dword
(
ver
);
r
=
check
-
comp_ver
;
if
(
r
<
0
||
(
r
==
0
&&
!
(
attributes
&
msidbUpgradeAttributesVersionMinInclusive
)))
{
RegCloseKey
(
hukey
);
index
++
;
continue
;
}
}
/* check max */
ver
=
MSI_RecordGetString
(
rec
,
3
);
comp_ver
=
msi_version_str_to_dword
(
ver
);
r
=
check
-
comp_ver
;
if
(
r
>
0
||
(
r
==
0
&&
!
(
attributes
&
msidbUpgradeAttributesVersionMaxInclusive
)))
if
(
ver
)
{
RegCloseKey
(
hukey
);
index
++
;
continue
;
comp_ver
=
msi_version_str_to_dword
(
ver
);
r
=
check
-
comp_ver
;
if
(
r
>
0
||
(
r
==
0
&&
!
(
attributes
&
msidbUpgradeAttributesVersionMaxInclusive
)))
{
RegCloseKey
(
hukey
);
index
++
;
continue
;
}
}
/* check language*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment