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
b0efe7f8
Commit
b0efe7f8
authored
Oct 12, 2007
by
Juan Lang
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Improve GetPerAdapterInfo stub.
parent
17248108
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+22
-2
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
b0efe7f8
...
...
@@ -1450,13 +1450,33 @@ DWORD WINAPI GetNumberOfInterfaces(PDWORD pdwNumIf)
* Failure: error code from winerror.h
*
* FIXME
* Stub, returns
ERROR_NOT_SUPPORTED
.
* Stub, returns
empty IP_PER_ADAPTER_INFO in every case
.
*/
DWORD
WINAPI
GetPerAdapterInfo
(
ULONG
IfIndex
,
PIP_PER_ADAPTER_INFO
pPerAdapterInfo
,
PULONG
pOutBufLen
)
{
ULONG
bytesNeeded
=
sizeof
(
IP_PER_ADAPTER_INFO
);
DWORD
ret
;
TRACE
(
"(IfIndex %d, pPerAdapterInfo %p, pOutBufLen %p)
\n
"
,
IfIndex
,
pPerAdapterInfo
,
pOutBufLen
);
return
ERROR_NOT_SUPPORTED
;
if
(
!
pOutBufLen
)
ret
=
ERROR_INVALID_PARAMETER
;
else
if
(
!
pPerAdapterInfo
)
{
*
pOutBufLen
=
bytesNeeded
;
ret
=
NO_ERROR
;
}
else
if
(
*
pOutBufLen
<
bytesNeeded
)
{
*
pOutBufLen
=
bytesNeeded
;
ret
=
ERROR_BUFFER_OVERFLOW
;
}
else
{
memset
(
pPerAdapterInfo
,
0
,
bytesNeeded
);
ret
=
NO_ERROR
;
}
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