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
dea32fa0
Commit
dea32fa0
authored
Sep 01, 2020
by
Isabella Bosia
Committed by
Alexandre Julliard
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Unify conversions to interface guid.
Signed-off-by:
Isabella Bosia
<
ibosia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e07eb13a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+9
-2
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
dea32fa0
...
...
@@ -1008,12 +1008,19 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX index
WCHAR
*
dst
;
DWORD
buflen
,
type
;
INTERNAL_IF_OPER_STATUS
status
;
NET_LUID
luid
;
GUID
guid
;
memset
(
aa
,
0
,
sizeof
(
IP_ADAPTER_ADDRESSES
));
aa
->
u
.
s
.
Length
=
sizeof
(
IP_ADAPTER_ADDRESSES
);
aa
->
u
.
s
.
IfIndex
=
index
;
sprintf
(
ptr
,
"{%08x-0000-0000-0000-000000000000}"
,
index
);
ConvertInterfaceIndexToLuid
(
index
,
&
luid
);
ConvertInterfaceLuidToGuid
(
&
luid
,
&
guid
);
sprintf
(
ptr
,
"{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}"
,
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
]);
aa
->
AdapterName
=
ptr
;
ptr
+=
39
;
...
...
@@ -1786,7 +1793,7 @@ DWORD WINAPI GetIfEntry2( MIB_IF_ROW2 *row2 )
row2
->
InterfaceLuid
.
Info
.
NetLuidIndex
=
row
.
dwIndex
;
row2
->
InterfaceLuid
.
Info
.
IfType
=
row
.
dwType
;
row2
->
InterfaceIndex
=
row
.
dwIndex
;
row2
->
InterfaceGuid
.
Data1
=
row
.
dwIndex
;
ConvertInterfaceLuidToGuid
(
&
row2
->
InterfaceLuid
,
&
row2
->
InterfaceGuid
)
;
row2
->
Type
=
row
.
dwType
;
row2
->
Mtu
=
row
.
dwMtu
;
MultiByteToWideChar
(
CP_UNIXCP
,
0
,
(
const
char
*
)
row
.
bDescr
,
-
1
,
row2
->
Description
,
len
);
...
...
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