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
d8f79a03
Commit
d8f79a03
authored
Aug 31, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Fixed varg0 leak in InstallerImpl_SummaryInformation.
parent
d3177504
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
automation.c
dlls/msi/automation.c
+11
-15
No files found.
dlls/msi/automation.c
View file @
d8f79a03
...
...
@@ -1841,32 +1841,28 @@ static HRESULT InstallerImpl_SummaryInformation(WORD wFlags,
if
(
!
(
wFlags
&
DISPATCH_PROPERTYGET
))
return
DISP_E_MEMBERNOTFOUND
;
VariantInit
(
&
varg0
);
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
VariantInit
(
&
varg1
);
hr
=
DispGetParam
(
pDispParams
,
1
,
VT_I4
,
&
varg1
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
V_VT
(
pVarResult
)
=
VT_DISPATCH
;
VariantInit
(
&
varg0
);
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
ret
=
MsiGetSummaryInformationW
(
0
,
V_BSTR
(
&
varg0
),
V_I4
(
&
varg1
),
&
hsuminfo
);
VariantClear
(
&
varg0
);
if
(
ret
!=
ERROR_SUCCESS
)
{
hr
=
DISP_E_EXCEPTION
;
goto
done
;
}
return
DISP_E_EXCEPTION
;
hr
=
create_summaryinfo
(
hsuminfo
,
&
dispatch
);
if
(
SUCCEED
ED
(
hr
))
V_DISPATCH
(
pVarResult
)
=
dispatch
;
if
(
FAIL
ED
(
hr
))
return
hr
;
done
:
V
ariantClear
(
&
varg0
)
;
return
hr
;
V_VT
(
pVarResult
)
=
VT_DISPATCH
;
V
_DISPATCH
(
pVarResult
)
=
dispatch
;
return
S_OK
;
}
static
HRESULT
InstallerImpl_UILevel
(
WORD
wFlags
,
...
...
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