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
f1349aa5
Commit
f1349aa5
authored
Jul 09, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Return the TCPIP device name in MIB_IFROW.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
adea7b8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+4
-3
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+0
-1
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
f1349aa5
...
...
@@ -1736,12 +1736,13 @@ DWORD WINAPI GetFriendlyIfIndex(DWORD IfIndex)
return
IfIndex
;
}
static
void
if_counted_string_copy
(
WCHAR
*
dst
,
unsigned
int
len
,
IF_COUNTED_STRING
*
src
);
static
void
if_row_fill
(
MIB_IFROW
*
row
,
struct
nsi_ndis_ifinfo_rw
*
rw
,
struct
nsi_ndis_ifinfo_dynamic
*
dyn
,
struct
nsi_ndis_ifinfo_static
*
stat
)
{
if_counted_string_copy
(
row
->
wszName
,
ARRAY_SIZE
(
row
->
wszName
),
&
rw
->
alias
);
static
const
WCHAR
name_prefix
[]
=
{
'\\'
,
'D'
,
'E'
,
'V'
,
'I'
,
'C'
,
'E'
,
'\\'
,
'T'
,
'C'
,
'P'
,
'I'
,
'P'
,
'_'
,
0
};
memcpy
(
row
->
wszName
,
name_prefix
,
sizeof
(
name_prefix
)
);
ConvertGuidToStringW
(
&
stat
->
if_guid
,
row
->
wszName
+
ARRAY_SIZE
(
name_prefix
)
-
1
,
CHARS_IN_GUID
);
row
->
dwIndex
=
stat
->
if_index
;
row
->
dwType
=
stat
->
type
;
row
->
dwMtu
=
dyn
->
mtu
;
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
f1349aa5
...
...
@@ -275,7 +275,6 @@ static void testGetIfTable(void)
guid
->
Data1
,
guid
->
Data2
,
guid
->
Data3
,
guid
->
Data4
[
0
],
guid
->
Data4
[
1
],
guid
->
Data4
[
2
],
guid
->
Data4
[
3
],
guid
->
Data4
[
4
],
guid
->
Data4
[
5
],
guid
->
Data4
[
6
],
guid
->
Data4
[
7
]);
todo_wine
ok
(
!
wcscmp
(
row
->
wszName
,
name
),
"got %s vs %s
\n
"
,
debugstr_w
(
row
->
wszName
),
debugstr_w
(
name
)
);
}
}
...
...
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