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
8d7720b0
Commit
8d7720b0
authored
Aug 19, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Aug 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Don't enumerate loopback interfaces in GetInterfaceInfo().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
203350e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-0
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+0
-1
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
8d7720b0
...
...
@@ -1936,6 +1936,7 @@ DWORD WINAPI GetInterfaceInfo( IP_INTERFACE_INFO *table, ULONG *size )
for
(
i
=
0
;
i
<
count
;
i
++
)
{
if
(
stat
[
i
].
type
==
IF_TYPE_SOFTWARE_LOOPBACK
)
continue
;
num
++
;
}
...
...
@@ -1952,6 +1953,7 @@ DWORD WINAPI GetInterfaceInfo( IP_INTERFACE_INFO *table, ULONG *size )
{
IP_ADAPTER_INDEX_MAP
*
row
;
if
(
stat
[
i
].
type
==
IF_TYPE_SOFTWARE_LOOPBACK
)
continue
;
row
=
table
->
Adapter
+
num
++
;
row
->
Index
=
stat
[
i
].
if_index
;
memcpy
(
row
->
Name
,
device_tcpip
,
sizeof
(
device_tcpip
)
);
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
8d7720b0
...
...
@@ -1109,7 +1109,6 @@ static void testGetInterfaceInfo(void)
GetIfEntry
(
&
row
);
ok
(
!
wcscmp
(
buf
->
Adapter
[
i
].
Name
,
row
.
wszName
),
"got %s vs %s
\n
"
,
debugstr_w
(
buf
->
Adapter
[
i
].
Name
),
debugstr_w
(
row
.
wszName
)
);
todo_wine_if
(
row
.
dwType
==
IF_TYPE_SOFTWARE_LOOPBACK
)
ok
(
row
.
dwType
!=
IF_TYPE_SOFTWARE_LOOPBACK
,
"got loopback
\n
"
);
}
HeapFree
(
GetProcessHeap
(),
0
,
buf
);
...
...
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