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
c059ceb5
Commit
c059ceb5
authored
Dec 14, 2008
by
James Hawkins
Committed by
Alexandre Julliard
Dec 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Set the property specified by the Source attribute of the Media table when applying a patch.
parent
01eb9300
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
0 deletions
+40
-0
action.c
dlls/msi/action.c
+40
-0
No files found.
dlls/msi/action.c
View file @
c059ceb5
...
...
@@ -480,6 +480,44 @@ static UINT msi_check_patch_applicable( MSIPACKAGE *package, MSISUMMARYINFO *si
return
ret
;
}
static
UINT
msi_set_media_source_prop
(
MSIPACKAGE
*
package
)
{
MSIQUERY
*
view
;
MSIRECORD
*
rec
=
NULL
;
LPWSTR
patch
;
LPCWSTR
prop
;
UINT
r
;
static
const
WCHAR
szPatch
[]
=
{
'P'
,
'A'
,
'T'
,
'C'
,
'H'
,
0
};
static
const
WCHAR
query
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'`'
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
'`'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
'`'
,
'M'
,
'e'
,
'd'
,
'i'
,
'a'
,
'`'
,
' '
,
'W'
,
'H'
,
'E'
,
'R'
,
'E'
,
' '
,
'`'
,
'S'
,
'o'
,
'u'
,
'r'
,
'c'
,
'e'
,
'`'
,
' '
,
'I'
,
'S'
,
' '
,
'N'
,
'O'
,
'T'
,
' '
,
'N'
,
'U'
,
'L'
,
'L'
,
0
};
r
=
MSI_DatabaseOpenViewW
(
package
->
db
,
query
,
&
view
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
r
=
MSI_ViewExecute
(
view
,
0
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
if
(
MSI_ViewFetch
(
view
,
&
rec
)
==
ERROR_SUCCESS
)
{
prop
=
MSI_RecordGetString
(
rec
,
1
);
patch
=
msi_dup_property
(
package
,
szPatch
);
MSI_SetPropertyW
(
package
,
prop
,
patch
);
msi_free
(
patch
);
}
done:
if
(
rec
)
msiobj_release
(
&
rec
->
hdr
);
msiobj_release
(
&
view
->
hdr
);
return
r
;
}
static
UINT
msi_parse_patch_summary
(
MSIPACKAGE
*
package
,
MSIDATABASE
*
patch_db
)
{
MSISUMMARYINFO
*
si
;
...
...
@@ -515,6 +553,8 @@ static UINT msi_parse_patch_summary( MSIPACKAGE *package, MSIDATABASE *patch_db
msi_free
(
substorage
);
msiobj_release
(
&
si
->
hdr
);
msi_set_media_source_prop
(
package
);
return
r
;
}
...
...
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