Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8328562e
Commit
8328562e
authored
May 03, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
May 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Assume a transform is applicable if it doesn't specify any products.
parent
7f81a2c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
patch.c
dlls/msi/patch.c
+9
-9
No files found.
dlls/msi/patch.c
View file @
8328562e
...
...
@@ -44,22 +44,22 @@ static BOOL match_language( MSIPACKAGE *package, LANGID langid )
return
FALSE
;
}
static
UINT
check_transform_applicable
(
MSIPACKAGE
*
package
,
IStorage
*
patch
)
static
UINT
check_transform_applicable
(
MSIPACKAGE
*
package
,
IStorage
*
transform
)
{
LPWSTR
prod_code
,
patch_product
,
template
=
NULL
;
WCHAR
*
package_product
,
*
transform_product
,
*
template
=
NULL
;
UINT
ret
=
ERROR_FUNCTION_FAILED
;
p
rod_code
=
msi_dup_property
(
package
->
db
,
szProductCode
);
patch_product
=
msi_get_suminfo_product
(
patch
);
p
ackage_product
=
msi_dup_property
(
package
->
db
,
szProductCode
);
transform_product
=
msi_get_suminfo_product
(
transform
);
TRACE
(
"
db = %s patch = %s
\n
"
,
debugstr_w
(
prod_code
),
debugstr_w
(
patch
_product
));
TRACE
(
"
package = %s transform = %s
\n
"
,
debugstr_w
(
package_product
),
debugstr_w
(
transform
_product
));
if
(
strstrW
(
patch_product
,
prod_code
))
if
(
!
transform_product
||
strstrW
(
transform_product
,
package_product
))
{
MSISUMMARYINFO
*
si
;
const
WCHAR
*
p
;
si
=
MSI_GetSummaryInformationW
(
patch
,
0
);
si
=
MSI_GetSummaryInformationW
(
transform
,
0
);
if
(
!
si
)
{
ERR
(
"no summary information!
\n
"
);
...
...
@@ -90,8 +90,8 @@ static UINT check_transform_applicable( MSIPACKAGE *package, IStorage *patch )
}
end:
msi_free
(
patch
_product
);
msi_free
(
p
rod_code
);
msi_free
(
transform
_product
);
msi_free
(
p
ackage_product
);
msi_free
(
template
);
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