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
035315c4
Commit
035315c4
authored
Dec 18, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Avoid a crash in get_propval when the query returned no results.
parent
0e6d3b86
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
query.c
dlls/wbemprox/query.c
+4
-4
No files found.
dlls/wbemprox/query.c
View file @
035315c4
...
...
@@ -644,22 +644,22 @@ HRESULT get_propval( const struct view *view, UINT index, const WCHAR *name, VAR
CIMTYPE
*
type
,
LONG
*
flavor
)
{
HRESULT
hr
;
UINT
column
,
row
=
view
->
result
[
index
]
;
UINT
column
,
row
;
VARTYPE
vartype
;
void
*
val_ptr
=
NULL
;
LONGLONG
val
;
if
(
is_system_prop
(
name
))
return
get_system_propval
(
view
,
index
,
name
,
ret
,
type
,
flavor
);
if
(
!
is_selected_prop
(
view
,
name
))
return
WBEM_E_NOT_FOUND
;
if
(
!
view
->
result
||
!
is_selected_prop
(
view
,
name
))
return
WBEM_E_NOT_FOUND
;
hr
=
get_column_index
(
view
->
table
,
name
,
&
column
);
if
(
hr
!=
S_OK
||
is_method
(
view
->
table
,
column
))
return
WBEM_E_NOT_FOUND
;
vartype
=
view
->
table
->
columns
[
column
].
vartype
;
row
=
view
->
result
[
index
];
hr
=
get_value
(
view
->
table
,
row
,
column
,
&
val
);
if
(
hr
!=
S_OK
)
return
hr
;
vartype
=
view
->
table
->
columns
[
column
].
vartype
;
if
(
view
->
table
->
columns
[
column
].
type
&
CIM_FLAG_ARRAY
)
{
CIMTYPE
basetype
=
view
->
table
->
columns
[
column
].
type
&
CIM_TYPE_MASK
;
...
...
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