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
ddf762a8
Commit
ddf762a8
authored
Jul 18, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 18, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use msi_get_package_code in msi_publish_product_properties.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e976e179
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
23 deletions
+5
-23
action.c
dlls/msi/action.c
+5
-23
No files found.
dlls/msi/action.c
View file @
ddf762a8
...
...
@@ -4281,10 +4281,8 @@ static UINT msi_publish_product_properties(MSIPACKAGE *package, HKEY hkey)
static
const
WCHAR
szClients
[]
=
{
'C'
,
'l'
,
'i'
,
'e'
,
'n'
,
't'
,
's'
,
0
};
static
const
WCHAR
szColon
[]
=
{
':'
,
0
};
MSIHANDLE
hdb
,
suminfo
;
WCHAR
*
buffer
,
*
ptr
,
guids
[
MAX_PATH
],
packcode
[
SQUASHED_GUID_SIZE
];
DWORD
langid
,
size
;
UINT
r
;
WCHAR
*
buffer
,
*
ptr
,
*
guids
,
packcode
[
SQUASHED_GUID_SIZE
];
DWORD
langid
;
buffer
=
msi_dup_property
(
package
->
db
,
INSTALLPROPERTY_PRODUCTNAMEW
);
msi_reg_set_val_str
(
hkey
,
INSTALLPROPERTY_PRODUCTNAMEW
,
buffer
);
...
...
@@ -4318,28 +4316,12 @@ static UINT msi_publish_product_properties(MSIPACKAGE *package, HKEY hkey)
msi_reg_set_val_dword
(
hkey
,
INSTALLPROPERTY_INSTANCETYPEW
,
0
);
msi_reg_set_val_str
(
hkey
,
szClients
,
szColon
);
hdb
=
alloc_msihandle
(
&
package
->
db
->
hdr
);
if
(
!
hdb
)
return
ERROR_NOT_ENOUGH_MEMORY
;
r
=
MsiGetSummaryInformationW
(
hdb
,
NULL
,
0
,
&
suminfo
);
MsiCloseHandle
(
hdb
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
size
=
MAX_PATH
;
r
=
MsiSummaryInfoGetPropertyW
(
suminfo
,
PID_REVNUMBER
,
NULL
,
NULL
,
NULL
,
guids
,
&
size
);
if
(
r
!=
ERROR_SUCCESS
)
goto
done
;
ptr
=
strchrW
(
guids
,
';'
);
if
(
ptr
)
*
ptr
=
0
;
if
(
!
(
guids
=
msi_get_package_code
(
package
->
db
)))
return
ERROR_OUTOFMEMORY
;
if
((
ptr
=
strchrW
(
guids
,
';'
)))
*
ptr
=
0
;
squash_guid
(
guids
,
packcode
);
msi_free
(
guids
);
msi_reg_set_val_str
(
hkey
,
INSTALLPROPERTY_PACKAGECODEW
,
packcode
);
done:
MsiCloseHandle
(
suminfo
);
return
ERROR_SUCCESS
;
}
...
...
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