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
7bdd9894
Commit
7bdd9894
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: Use ConvertInterfaceIndexToLuid() where possible.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ecbd9978
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-5
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
7bdd9894
...
...
@@ -1052,8 +1052,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
aa
->
PhysicalAddressLength
=
buflen
;
aa
->
IfType
=
typeFromMibType
(
type
);
aa
->
ConnectionType
=
connectionTypeFromMibType
(
type
);
aa
->
Luid
.
Info
.
NetLuidIndex
=
index
;
aa
->
Luid
.
Info
.
IfType
=
aa
->
IfType
;
ConvertInterfaceIndexToLuid
(
index
,
&
aa
->
Luid
);
if
(
output_gateways
&&
num_v4_gateways
)
{
...
...
@@ -1796,10 +1795,8 @@ DWORD WINAPI GetIfEntry2( MIB_IF_ROW2 *row2 )
if
((
ret
=
getInterfaceStatsByName
(
name
,
&
row
)))
return
ret
;
memset
(
row2
,
0
,
sizeof
(
*
row2
)
);
row2
->
InterfaceLuid
.
Info
.
Reserved
=
0
;
row2
->
InterfaceLuid
.
Info
.
NetLuidIndex
=
row
.
dwIndex
;
row2
->
InterfaceLuid
.
Info
.
IfType
=
row
.
dwType
;
row2
->
InterfaceIndex
=
row
.
dwIndex
;
ConvertInterfaceIndexToLuid
(
row2
->
InterfaceIndex
,
&
row2
->
InterfaceLuid
);
ConvertInterfaceLuidToGuid
(
&
row2
->
InterfaceLuid
,
&
row2
->
InterfaceGuid
);
row2
->
Type
=
row
.
dwType
;
row2
->
Mtu
=
row
.
dwMtu
;
...
...
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