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
d4ebc529
Commit
d4ebc529
authored
Apr 16, 2012
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Reimplement GetTcpTable on top of GetExtendedTcpTable.
parent
d2dbd9bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+1
-21
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
d4ebc529
...
...
@@ -1853,28 +1853,8 @@ BOOL WINAPI GetRTTAndHopCount(IPAddr DestIpAddress, PULONG HopCount, ULONG MaxHo
*/
DWORD
WINAPI
GetTcpTable
(
PMIB_TCPTABLE
pTcpTable
,
PDWORD
pdwSize
,
BOOL
bOrder
)
{
DWORD
ret
;
PMIB_TCPTABLE
table
;
TRACE
(
"pTcpTable %p, pdwSize %p, bOrder %d
\n
"
,
pTcpTable
,
pdwSize
,
bOrder
);
if
(
!
pdwSize
)
return
ERROR_INVALID_PARAMETER
;
ret
=
AllocateAndGetTcpTableFromStack
(
&
table
,
bOrder
,
GetProcessHeap
(),
0
);
if
(
!
ret
)
{
DWORD
size
=
FIELD_OFFSET
(
MIB_TCPTABLE
,
table
[
table
->
dwNumEntries
]
);
if
(
!
pTcpTable
||
*
pdwSize
<
size
)
{
*
pdwSize
=
size
;
ret
=
ERROR_INSUFFICIENT_BUFFER
;
}
else
{
*
pdwSize
=
size
;
memcpy
(
pTcpTable
,
table
,
size
);
}
HeapFree
(
GetProcessHeap
(),
0
,
table
);
}
TRACE
(
"returning %d
\n
"
,
ret
);
return
ret
;
return
GetExtendedTcpTable
(
pTcpTable
,
pdwSize
,
bOrder
,
AF_INET
,
TCP_TABLE_BASIC_ALL
,
0
);
}
/******************************************************************
...
...
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