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
386d2aa8
Commit
386d2aa8
authored
Feb 11, 2014
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Don't list loopback network adapters.
parent
25eb1005
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
builtin.c
dlls/wbemprox/builtin.c
+12
-2
No files found.
dlls/wbemprox/builtin.c
View file @
386d2aa8
...
...
@@ -1616,7 +1616,10 @@ static enum fill_status fill_networkadapter( struct table *table, const struct e
heap_free
(
buffer
);
return
FILL_STATUS_FAILED
;
}
for
(
aa
=
buffer
;
aa
;
aa
=
aa
->
Next
)
count
++
;
for
(
aa
=
buffer
;
aa
;
aa
=
aa
->
Next
)
{
if
(
aa
->
IfType
!=
IF_TYPE_SOFTWARE_LOOPBACK
)
count
++
;
}
if
(
!
resize_table
(
table
,
count
,
sizeof
(
*
rec
)
))
{
heap_free
(
buffer
);
...
...
@@ -1624,6 +1627,8 @@ static enum fill_status fill_networkadapter( struct table *table, const struct e
}
for
(
aa
=
buffer
;
aa
;
aa
=
aa
->
Next
)
{
if
(
aa
->
IfType
==
IF_TYPE_SOFTWARE_LOOPBACK
)
continue
;
rec
=
(
struct
record_networkadapter
*
)(
table
->
data
+
offset
);
sprintfW
(
device_id
,
fmtW
,
aa
->
u
.
s
.
IfIndex
);
rec
->
adaptertype
=
get_adaptertype
(
aa
->
IfType
,
&
physical
);
...
...
@@ -1669,7 +1674,10 @@ static enum fill_status fill_networkadapterconfig( struct table *table, const st
heap_free
(
buffer
);
return
FILL_STATUS_FAILED
;
}
for
(
aa
=
buffer
;
aa
;
aa
=
aa
->
Next
)
count
++
;
for
(
aa
=
buffer
;
aa
;
aa
=
aa
->
Next
)
{
if
(
aa
->
IfType
!=
IF_TYPE_SOFTWARE_LOOPBACK
)
count
++
;
}
if
(
!
resize_table
(
table
,
count
,
sizeof
(
*
rec
)
))
{
heap_free
(
buffer
);
...
...
@@ -1677,6 +1685,8 @@ static enum fill_status fill_networkadapterconfig( struct table *table, const st
}
for
(
aa
=
buffer
;
aa
;
aa
=
aa
->
Next
)
{
if
(
aa
->
IfType
==
IF_TYPE_SOFTWARE_LOOPBACK
)
continue
;
rec
=
(
struct
record_networkadapterconfig
*
)(
table
->
data
+
offset
);
rec
->
index
=
aa
->
u
.
s
.
IfIndex
;
rec
->
ipconnectionmetric
=
20
;
...
...
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