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
0aa56cab
Commit
0aa56cab
authored
Dec 22, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: Improve error handling when converting to VT_BSTR (Coverity).
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a0b8f178
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
provider.c
dlls/dxdiagn/provider.c
+7
-1
No files found.
dlls/dxdiagn/provider.c
View file @
0aa56cab
...
...
@@ -346,6 +346,7 @@ static inline HRESULT add_bool_property(IDxDiagContainerImpl_Container *node, co
static
inline
HRESULT
add_ull_as_bstr_property
(
IDxDiagContainerImpl_Container
*
node
,
const
WCHAR
*
propName
,
ULONGLONG
data
)
{
IDxDiagContainerImpl_Property
*
prop
;
HRESULT
hr
;
prop
=
allocate_property_information
(
propName
);
if
(
!
prop
)
...
...
@@ -354,7 +355,12 @@ static inline HRESULT add_ull_as_bstr_property(IDxDiagContainerImpl_Container *n
V_VT
(
&
prop
->
vProp
)
=
VT_UI8
;
V_UI8
(
&
prop
->
vProp
)
=
data
;
VariantChangeType
(
&
prop
->
vProp
,
&
prop
->
vProp
,
0
,
VT_BSTR
);
hr
=
VariantChangeType
(
&
prop
->
vProp
,
&
prop
->
vProp
,
0
,
VT_BSTR
);
if
(
FAILED
(
hr
))
{
free_property_information
(
prop
);
return
hr
;
}
list_add_tail
(
&
node
->
properties
,
&
prop
->
entry
);
++
node
->
nProperties
;
...
...
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