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
35ce56ac
Commit
35ce56ac
authored
Nov 04, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Pass a database pointer to msi_clone_properties instead of a package pointer.
parent
dcf7d294
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
action.c
dlls/msi/action.c
+1
-1
msipriv.h
dlls/msi/msipriv.h
+1
-1
package.c
dlls/msi/package.c
+6
-6
No files found.
dlls/msi/action.c
View file @
35ce56ac
...
...
@@ -7814,7 +7814,7 @@ UINT MSI_InstallPackage( MSIPACKAGE *package, LPCWSTR szPackagePath,
}
/* properties may have been added by a transform */
msi_clone_properties
(
package
);
msi_clone_properties
(
package
->
db
);
msi_set_original_database_property
(
package
->
db
,
szPackagePath
);
msi_parse_command_line
(
package
,
szCommandLine
,
FALSE
);
...
...
dlls/msi/msipriv.h
View file @
35ce56ac
...
...
@@ -864,7 +864,7 @@ extern UINT MSI_SetFeatureStateW(MSIPACKAGE*, LPCWSTR, INSTALLSTATE ) DECLSPEC_H
extern
UINT
msi_download_file
(
LPCWSTR
szUrl
,
LPWSTR
filename
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_package_add_info
(
MSIPACKAGE
*
,
DWORD
,
DWORD
,
LPCWSTR
,
LPWSTR
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_package_add_media_disk
(
MSIPACKAGE
*
,
DWORD
,
DWORD
,
DWORD
,
LPWSTR
,
LPWSTR
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_clone_properties
(
MSI
PACKAG
E
*
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_clone_properties
(
MSI
DATABAS
E
*
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_set_context
(
MSIPACKAGE
*
)
DECLSPEC_HIDDEN
;
extern
void
msi_adjust_privilege_properties
(
MSIPACKAGE
*
)
DECLSPEC_HIDDEN
;
extern
UINT
MSI_GetFeatureCost
(
MSIPACKAGE
*
,
MSIFEATURE
*
,
MSICOSTTREE
,
INSTALLSTATE
,
LPINT
)
DECLSPEC_HIDDEN
;
...
...
dlls/msi/package.c
View file @
35ce56ac
...
...
@@ -386,7 +386,7 @@ static UINT create_temp_property_table(MSIPACKAGE *package)
return
rc
;
}
UINT
msi_clone_properties
(
MSIPACKAGE
*
package
)
UINT
msi_clone_properties
(
MSIDATABASE
*
db
)
{
static
const
WCHAR
query_select
[]
=
{
'S'
,
'E'
,
'L'
,
'E'
,
'C'
,
'T'
,
' '
,
'*'
,
' '
,
'F'
,
'R'
,
'O'
,
'M'
,
' '
,
...
...
@@ -403,7 +403,7 @@ UINT msi_clone_properties(MSIPACKAGE *package)
MSIQUERY
*
view_select
;
UINT
rc
;
rc
=
MSI_DatabaseOpenViewW
(
package
->
db
,
query_select
,
&
view_select
);
rc
=
MSI_DatabaseOpenViewW
(
db
,
query_select
,
&
view_select
);
if
(
rc
!=
ERROR_SUCCESS
)
return
rc
;
...
...
@@ -424,7 +424,7 @@ UINT msi_clone_properties(MSIPACKAGE *package)
if
(
rc
!=
ERROR_SUCCESS
)
break
;
rc
=
MSI_DatabaseOpenViewW
(
package
->
db
,
query_insert
,
&
view_insert
);
rc
=
MSI_DatabaseOpenViewW
(
db
,
query_insert
,
&
view_insert
);
if
(
rc
!=
ERROR_SUCCESS
)
{
msiobj_release
(
&
rec_select
->
hdr
);
...
...
@@ -440,7 +440,7 @@ UINT msi_clone_properties(MSIPACKAGE *package)
TRACE
(
"insert failed, trying update
\n
"
);
rc
=
MSI_DatabaseOpenViewW
(
package
->
db
,
query_update
,
&
view_update
);
rc
=
MSI_DatabaseOpenViewW
(
db
,
query_update
,
&
view_update
);
if
(
rc
!=
ERROR_SUCCESS
)
{
WARN
(
"open view failed %u
\n
"
,
rc
);
...
...
@@ -1175,7 +1175,7 @@ MSIPACKAGE *MSI_CreatePackage( MSIDATABASE *db, LPCWSTR base_url )
package
->
BaseURL
=
strdupW
(
base_url
);
create_temp_property_table
(
package
);
msi_clone_properties
(
package
);
msi_clone_properties
(
package
->
db
);
msi_adjust_privilege_properties
(
package
);
package
->
ProductCode
=
msi_dup_property
(
package
->
db
,
szProductCode
);
...
...
@@ -1679,7 +1679,7 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
}
if
(
index
)
{
msi_clone_properties
(
package
);
msi_clone_properties
(
package
->
db
);
msi_adjust_privilege_properties
(
package
);
}
r
=
msi_set_original_database_property
(
package
->
db
,
szPackage
);
...
...
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