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
846811be
Commit
846811be
authored
Apr 14, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Check the return value of MSIREG_OpenUpgradeCodesKey (valgrind).
parent
6a48fcec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
action.c
dlls/msi/action.c
+9
-7
No files found.
dlls/msi/action.c
View file @
846811be
...
...
@@ -5293,8 +5293,7 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
WCHAR
squashed_pc
[
SQUISH_GUID_SIZE
];
MSIRECORD
*
uirow
;
LPWSTR
upgrade_code
;
HKEY
hkey
,
props
;
HKEY
upgrade
;
HKEY
hkey
,
props
,
upgrade_key
;
UINT
rc
;
/* FIXME: also need to publish if the product is in advertise mode */
...
...
@@ -5325,11 +5324,14 @@ static UINT ACTION_RegisterProduct(MSIPACKAGE *package)
upgrade_code
=
msi_dup_property
(
package
->
db
,
szUpgradeCode
);
if
(
upgrade_code
)
{
MSIREG_OpenUpgradeCodesKey
(
upgrade_code
,
&
upgrade
,
TRUE
);
squash_guid
(
package
->
ProductCode
,
squashed_pc
);
msi_reg_set_val_str
(
upgrade
,
squashed_pc
,
NULL
);
RegCloseKey
(
upgrade
);
msi_free
(
upgrade_code
);
rc
=
MSIREG_OpenUpgradeCodesKey
(
upgrade_code
,
&
upgrade_key
,
TRUE
);
if
(
rc
==
ERROR_SUCCESS
)
{
squash_guid
(
package
->
ProductCode
,
squashed_pc
);
msi_reg_set_val_str
(
upgrade_key
,
squashed_pc
,
NULL
);
RegCloseKey
(
upgrade_key
);
}
msi_free
(
upgrade_code
);
}
done:
...
...
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