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
ab237f0a
Commit
ab237f0a
authored
Jul 08, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 08, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Use ConvertGuidToStringA() where possible.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2e7353dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-8
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
ab237f0a
...
...
@@ -747,10 +747,7 @@ DWORD WINAPI GetAdaptersInfo(PIP_ADAPTER_INFO pAdapterInfo, PULONG pOutBufLen)
/* on Win98 this is left empty, but whatever */
ConvertInterfaceIndexToLuid
(
table
->
indexes
[
ndx
],
&
luid
);
ConvertInterfaceLuidToGuid
(
&
luid
,
&
guid
);
sprintf
(
ptr
->
AdapterName
,
"{%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
]);
ConvertGuidToStringA
(
&
guid
,
ptr
->
AdapterName
,
ARRAY_SIZE
(
ptr
->
AdapterName
)
);
getInterfaceNameByIndex
(
table
->
indexes
[
ndx
],
ptr
->
Description
);
ptr
->
AddressLength
=
sizeof
(
ptr
->
Address
);
getInterfacePhysicalByIndex
(
table
->
indexes
[
ndx
],
...
...
@@ -1057,10 +1054,7 @@ static ULONG adapterAddressesFromIndex(ULONG family, ULONG flags, IF_INDEX 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
]);
ConvertGuidToStringA
(
&
guid
,
ptr
,
CHARS_IN_GUID
);
aa
->
AdapterName
=
ptr
;
ptr
+=
CHARS_IN_GUID
;
...
...
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