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
84a51219
Commit
84a51219
authored
Jul 02, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 02, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Implement if_indextoname() using the ConvertInterface* functions.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
259f7c7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+11
-3
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
84a51219
...
...
@@ -3374,11 +3374,19 @@ IF_INDEX WINAPI IPHLP_if_nametoindex(const char *name)
/******************************************************************
* if_indextoname (IPHLPAPI.@)
*/
PCHAR
WINAPI
IPHLP_if_indextoname
(
NET_IFINDEX
index
,
PCHAR
name
)
char
*
WINAPI
IPHLP_if_indextoname
(
NET_IFINDEX
index
,
char
*
name
)
{
TRACE
(
"(%u, %p)
\n
"
,
index
,
name
);
NET_LUID
luid
;
DWORD
err
;
TRACE
(
"(%u, %p)
\n
"
,
index
,
name
);
err
=
ConvertInterfaceIndexToLuid
(
index
,
&
luid
);
if
(
err
)
return
NULL
;
return
getInterfaceNameByIndex
(
index
,
name
);
err
=
ConvertInterfaceLuidToNameA
(
&
luid
,
name
,
IF_MAX_STRING_SIZE
);
if
(
err
)
return
NULL
;
return
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