[PATCH 1/4] ws2_32: Reimplement WSAEnumProtocols() using a flat array of WSA_PROTOCOLINFO structures.

Zebediah Figura zfigura at codeweavers.com
Mon Sep 28 22:27:12 CDT 2020


On 9/28/20 2:16 PM, Alexandre Julliard wrote:
> Zebediah Figura <z.figura12 at gmail.com> writes:
> 
>> Looking up protocol information by protocol number is not reliable, as protocol
>> numbers for different families may overlap.
>>
>> Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
>> ---
>>  dlls/ws2_32/socket.c | 210 ++++++++++++++++++++++++++++++-------------
>>  1 file changed, 149 insertions(+), 61 deletions(-)
> 
> clang doesn't like this:
> 
> ../wine/dlls/ws2_32/socket.c:209:23: error: initializer element is not a compile-time constant
>         .ProviderId = ProviderIdIP,
>                       ^~~~~~~~~~~~
> 1 error generated.
> make: *** [Makefile:166412: dlls/ws2_32/socket.o] Error 1
> 

Looks like this is <https://bugs.llvm.org/show_bug.cgi?id=45157>.
Unfortunate; I guess I'll just copy the GUID struct verbatim instead...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200928/4381ceff/attachment.sig>


More information about the wine-devel mailing list