Re: [1/2] iphlpapi: Add GetUnicastIpAddressEntry implementation (resend)
3 Feb
2017
3 Feb
'17
9:22 a.m.
On Fri, 2017-02-03 at 00:08 +0100, André Hentschel wrote:
+ GetAdaptersAddresses(AF_UNSPEC, GAA_FLAG_INCLUDE_ALL_INTERFACES | GAA_FLAG_INCLUDE_PREFIX, NULL, NULL, &size);
GAA_FLAG_INCLUDE_ALL_INTERFACES has no effect on Wine and you're not using the result of GAA_FLAG_INCLUDE_PREFIX.
+ ptr = HeapAlloc(GetProcessHeap(), 0, size); + ret = GetAdaptersAddresses(AF_UNSPEC, GAA_FLAG_INCLUDE_ALL_INTERFACES | GAA_FLAG_INCLUDE_PREFIX, NULL, ptr, &size); + if (FAILED(ret))
Please handle allocation failure. GetAdaptersAddresses returns ULONG, not HRESULT.
3233
Age (days ago)
3233
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hans Leidekker