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
27b18a39
Commit
27b18a39
authored
May 13, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
May 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Use a separate index variable to build the safearray in get_properties.
parent
d9ae2b82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
query.c
dlls/wbemprox/query.c
+5
-4
No files found.
dlls/wbemprox/query.c
View file @
27b18a39
...
...
@@ -963,12 +963,12 @@ HRESULT get_properties( const struct view *view, LONG flags, SAFEARRAY **props )
{
SAFEARRAY
*
sa
;
BSTR
str
;
LONG
i
;
UINT
num_props
=
count_selected_properties
(
view
)
;
UINT
i
,
num_props
=
count_selected_properties
(
view
)
;
LONG
j
;
if
(
!
(
sa
=
SafeArrayCreateVector
(
VT_BSTR
,
0
,
num_props
)))
return
E_OUTOFMEMORY
;
for
(
i
=
0
;
i
<
view
->
table
->
num_cols
;
i
++
)
for
(
i
=
0
,
j
=
0
;
i
<
view
->
table
->
num_cols
;
i
++
)
{
BOOL
is_system
;
...
...
@@ -980,12 +980,13 @@ HRESULT get_properties( const struct view *view, LONG flags, SAFEARRAY **props )
else
if
((
flags
&
WBEM_FLAG_SYSTEM_ONLY
)
&&
!
is_system
)
continue
;
str
=
SysAllocString
(
view
->
table
->
columns
[
i
].
name
);
if
(
!
str
||
SafeArrayPutElement
(
sa
,
&
i
,
str
)
!=
S_OK
)
if
(
!
str
||
SafeArrayPutElement
(
sa
,
&
j
,
str
)
!=
S_OK
)
{
SysFreeString
(
str
);
SafeArrayDestroy
(
sa
);
return
E_OUTOFMEMORY
;
}
j
++
;
}
*
props
=
sa
;
return
S_OK
;
...
...
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