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
85b84a94
Commit
85b84a94
authored
Nov 23, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
Nov 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmic: Call _BeginEnumeration() before iterating class object.
Otherwise enumeration fails on Windows.
parent
6412b3dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.c
programs/wmic/main.c
+3
-1
No files found.
programs/wmic/main.c
View file @
85b84a94
...
...
@@ -224,6 +224,7 @@ static int query_prop( const WCHAR *class, const WCHAR *propnames )
IEnumWbemClassObject_Next
(
result
,
WBEM_INFINITE
,
1
,
&
obj
,
&
count
);
if
(
!
count
)
break
;
IWbemClassObject_BeginEnumeration
(
obj
,
0
);
while
(
IWbemClassObject_Next
(
obj
,
0
,
&
name
,
&
v
,
NULL
,
NULL
)
==
S_OK
)
{
VariantChangeType
(
&
v
,
&
v
,
0
,
VT_BSTR
);
...
...
@@ -241,6 +242,7 @@ static int query_prop( const WCHAR *class, const WCHAR *propnames )
IEnumWbemClassObject_Next
(
result
,
WBEM_INFINITE
,
1
,
&
obj
,
&
count
);
if
(
count
)
{
IWbemClassObject_BeginEnumeration
(
obj
,
0
);
while
(
IWbemClassObject_Next
(
obj
,
0
,
&
name
,
NULL
,
NULL
,
NULL
)
==
S_OK
)
{
output_text
(
name
,
width
);
...
...
@@ -256,7 +258,7 @@ static int query_prop( const WCHAR *class, const WCHAR *propnames )
{
IEnumWbemClassObject_Next
(
result
,
WBEM_INFINITE
,
1
,
&
obj
,
&
count
);
if
(
!
count
)
break
;
IWbemClassObject_BeginEnumeration
(
obj
,
0
);
while
(
IWbemClassObject_Next
(
obj
,
0
,
NULL
,
&
v
,
NULL
,
NULL
)
==
S_OK
)
{
VariantChangeType
(
&
v
,
&
v
,
0
,
VT_BSTR
);
...
...
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