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
261e1179
Commit
261e1179
authored
Jun 15, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jun 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Patches are applied based on ProductCode, not ProductID.
parent
d8860d34
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
action.c
dlls/msi/action.c
+8
-8
No files found.
dlls/msi/action.c
View file @
261e1179
...
...
@@ -454,15 +454,15 @@ static UINT msi_apply_substorage_transform( MSIPACKAGE *package,
static
UINT
msi_check_patch_applicable
(
MSIPACKAGE
*
package
,
MSISUMMARYINFO
*
si
)
{
static
const
WCHAR
szProd
ID
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'I'
,
'D
'
,
0
};
LPWSTR
guid_list
,
*
guids
,
product_
id
;
static
const
WCHAR
szProd
Code
[]
=
{
'P'
,
'r'
,
'o'
,
'd'
,
'u'
,
'c'
,
't'
,
'C'
,
'o'
,
'd'
,
'e
'
,
0
};
LPWSTR
guid_list
,
*
guids
,
product_
code
;
UINT
i
,
ret
=
ERROR_FUNCTION_FAILED
;
product_
id
=
msi_dup_property
(
package
,
szProdID
);
if
(
!
product_
id
)
product_
code
=
msi_dup_property
(
package
,
szProdCode
);
if
(
!
product_
code
)
{
/* FIXME: the property Product
ID
should be written into the DB somewhere */
ERR
(
"no product
ID
to check
\n
"
);
/* FIXME: the property Product
Code
should be written into the DB somewhere */
ERR
(
"no product
code
to check
\n
"
);
return
ERROR_SUCCESS
;
}
...
...
@@ -470,12 +470,12 @@ static UINT msi_check_patch_applicable( MSIPACKAGE *package, MSISUMMARYINFO *si
guids
=
msi_split_string
(
guid_list
,
';'
);
for
(
i
=
0
;
guids
[
i
]
&&
ret
!=
ERROR_SUCCESS
;
i
++
)
{
if
(
!
lstrcmpW
(
guids
[
i
],
product_
id
))
if
(
!
lstrcmpW
(
guids
[
i
],
product_
code
))
ret
=
ERROR_SUCCESS
;
}
msi_free
(
guids
);
msi_free
(
guid_list
);
msi_free
(
product_
id
);
msi_free
(
product_
code
);
return
ret
;
}
...
...
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