Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1a782a52
Commit
1a782a52
authored
May 16, 2022
by
Paul Gofman
Committed by
Alexandre Julliard
May 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Don't request unused dynamic interface data.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ef04f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+3
-3
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
1a782a52
...
...
@@ -598,7 +598,6 @@ DWORD WINAPI GetAdaptersInfo( IP_ADAPTER_INFO *info, ULONG *size )
DWORD
len
,
i
,
uni
,
fwd
;
NET_LUID
*
if_keys
=
NULL
;
struct
nsi_ndis_ifinfo_rw
*
if_rw
=
NULL
;
struct
nsi_ndis_ifinfo_dynamic
*
if_dyn
=
NULL
;
struct
nsi_ndis_ifinfo_static
*
if_stat
=
NULL
;
struct
nsi_ipv4_unicast_key
*
uni_keys
=
NULL
;
struct
nsi_ip_unicast_rw
*
uni_rw
=
NULL
;
...
...
@@ -612,7 +611,8 @@ DWORD WINAPI GetAdaptersInfo( IP_ADAPTER_INFO *info, ULONG *size )
err
=
NsiAllocateAndGetTable
(
1
,
&
NPI_MS_NDIS_MODULEID
,
NSI_NDIS_IFINFO_TABLE
,
(
void
**
)
&
if_keys
,
sizeof
(
*
if_keys
),
(
void
**
)
&
if_rw
,
sizeof
(
*
if_rw
),
(
void
**
)
&
if_dyn
,
sizeof
(
*
if_dyn
),
(
void
**
)
&
if_stat
,
sizeof
(
*
if_stat
),
&
if_count
,
0
);
NULL
,
0
,
(
void
**
)
&
if_stat
,
sizeof
(
*
if_stat
),
&
if_count
,
0
);
if
(
err
)
return
err
;
for
(
i
=
0
;
i
<
if_count
;
i
++
)
{
...
...
@@ -726,7 +726,7 @@ err:
heap_free
(
wins_servers
);
NsiFreeTable
(
fwd_keys
,
NULL
,
NULL
,
NULL
);
NsiFreeTable
(
uni_keys
,
uni_rw
,
NULL
,
NULL
);
NsiFreeTable
(
if_keys
,
if_rw
,
if_dyn
,
if_stat
);
NsiFreeTable
(
if_keys
,
if_rw
,
NULL
,
if_stat
);
return
err
;
}
...
...
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