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
74641ab8
Commit
74641ab8
authored
May 04, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
May 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Handle non-null product code in MSI_ApplyPatchW.
parent
25460075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
msi.c
dlls/msi/msi.c
+16
-10
No files found.
dlls/msi/msi.c
View file @
74641ab8
...
...
@@ -359,21 +359,27 @@ static UINT MSI_ApplyPatchW(LPCWSTR szPatchPackage, LPCWSTR szProductCode, LPCWS
lstrcatW
(
cmd
,
patcheq
);
lstrcatW
(
cmd
,
szPatchPackage
);
beg
=
codes
;
while
((
end
=
strchrW
(
beg
,
'}'
)))
if
(
szProductCode
)
r
=
MsiConfigureProductExW
(
szProductCode
,
INSTALLLEVEL_DEFAULT
,
INSTALLSTATE_DEFAULT
,
cmd
);
else
{
*
(
end
+
1
)
=
'\0'
;
r
=
MsiConfigureProductExW
(
beg
,
INSTALLLEVEL_DEFAULT
,
INSTALLSTATE_DEFAULT
,
cmd
);
if
(
r
==
ERROR_SUCCESS
)
beg
=
codes
;
while
((
end
=
strchrW
(
beg
,
'}'
)))
{
TRACE
(
"patch applied
\n
"
);
succeeded
=
TRUE
;
*
(
end
+
1
)
=
'\0'
;
r
=
MsiConfigureProductExW
(
beg
,
INSTALLLEVEL_DEFAULT
,
INSTALLSTATE_DEFAULT
,
cmd
);
if
(
r
==
ERROR_SUCCESS
)
{
TRACE
(
"patch applied
\n
"
);
succeeded
=
TRUE
;
}
beg
=
end
+
2
;
}
beg
=
end
+
2
;
if
(
succeeded
)
r
=
ERROR_SUCCESS
;
}
if
(
succeeded
)
r
=
ERROR_SUCCESS
;
done:
msi_free
(
cmd
);
msi_free
(
codes
);
...
...
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