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
8d9d7fc5
Commit
8d9d7fc5
authored
Jul 22, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Jul 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Retrieve the IPv4 addresses using an export rather than a helper.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
24ca70a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-1
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
8d9d7fc5
...
@@ -76,6 +76,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
...
@@ -76,6 +76,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(iphlpapi);
#define CHARS_IN_GUID 39
#define CHARS_IN_GUID 39
DWORD
WINAPI
AllocateAndGetIfTableFromStack
(
MIB_IFTABLE
**
table
,
BOOL
sort
,
HANDLE
heap
,
DWORD
flags
);
DWORD
WINAPI
AllocateAndGetIfTableFromStack
(
MIB_IFTABLE
**
table
,
BOOL
sort
,
HANDLE
heap
,
DWORD
flags
);
DWORD
WINAPI
AllocateAndGetIpAddrTableFromStack
(
MIB_IPADDRTABLE
**
table
,
BOOL
sort
,
HANDLE
heap
,
DWORD
flags
);
static
const
NPI_MODULEID
*
ip_module_id
(
USHORT
family
)
static
const
NPI_MODULEID
*
ip_module_id
(
USHORT
family
)
{
{
...
@@ -350,7 +351,7 @@ DWORD WINAPI CreateSortedAddressPairs( const PSOCKADDR_IN6 src_list, DWORD src_c
...
@@ -350,7 +351,7 @@ DWORD WINAPI CreateSortedAddressPairs( const PSOCKADDR_IN6 src_list, DWORD src_c
if
(
!
(
pairs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
return
ERROR_NOT_ENOUGH_MEMORY
;
if
(
!
(
pairs
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)))
return
ERROR_NOT_ENOUGH_MEMORY
;
ptr
=
(
SOCKADDR_IN6
*
)
&
pairs
[
dst_count
];
ptr
=
(
SOCKADDR_IN6
*
)
&
pairs
[
dst_count
];
if
((
ret
=
getIPAddrTable
(
&
table
,
GetProcessHeap
(),
0
)))
if
((
ret
=
AllocateAndGetIpAddrTableFromStack
(
&
table
,
FALSE
,
GetProcessHeap
(),
0
)))
{
{
HeapFree
(
GetProcessHeap
(),
0
,
pairs
);
HeapFree
(
GetProcessHeap
(),
0
,
pairs
);
return
ret
;
return
ret
;
...
...
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