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
708ab4ca
Commit
708ab4ca
authored
Apr 16, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Apr 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Update the buffer size only if required in GetAdaptersAddresses.
parent
a49668e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+3
-1
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+0
-1
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
708ab4ca
...
...
@@ -1382,8 +1382,10 @@ ULONG WINAPI DECLSPEC_HOTPATCH GetAdaptersAddresses(ULONG family, ULONG flags, P
ret
=
ERROR_SUCCESS
;
}
else
{
ret
=
ERROR_BUFFER_OVERFLOW
;
*
buflen
=
total_size
;
*
buflen
=
total_size
;
}
TRACE
(
"num adapters %u
\n
"
,
table
->
numIndexes
);
HeapFree
(
GetProcessHeap
(),
0
,
table
);
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
708ab4ca
...
...
@@ -1338,7 +1338,6 @@ static void test_GetAdaptersAddresses(void)
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
osize
);
ret
=
pGetAdaptersAddresses
(
AF_UNSPEC
,
0
,
NULL
,
ptr
,
&
osize
);
ok
(
!
ret
,
"expected ERROR_SUCCESS got %u
\n
"
,
ret
);
todo_wine
ok
(
osize
==
size
,
"expected %d, got %d
\n
"
,
size
,
osize
);
for
(
aa
=
ptr
;
!
ret
&&
aa
;
aa
=
aa
->
Next
)
...
...
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