[PATCH 2/6] ws2_32: Always support AF_IPX and AF_IRDA in bind().

Zebediah Figura (she/her) zfigura at codeweavers.com
Tue Aug 3 19:18:40 CDT 2021


On 8/3/21 4:49 PM, Alexandre Julliard wrote:
> Zebediah Figura <zfigura at codeweavers.com> writes:
> 
>> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
>> ---
>>   dlls/ws2_32/socket.c | 6 ------
>>   1 file changed, 6 deletions(-)
>>
>> diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
>> index 40e4ecb9325..315b211b22c 100644
>> --- a/dlls/ws2_32/socket.c
>> +++ b/dlls/ws2_32/socket.c
>> @@ -733,15 +733,9 @@ static inline BOOL supported_pf(int pf)
>>       {
>>       case WS_AF_INET:
>>       case WS_AF_INET6:
>> -        return TRUE;
>> -#ifdef HAS_IPX
>>       case WS_AF_IPX:
>> -        return TRUE;
>> -#endif
>> -#ifdef HAS_IRDA
>>       case WS_AF_IRDA:
>>           return TRUE;
>> -#endif
>>       default:
>>           return FALSE;
>>       }
> 
> I'm not sure how that would make a difference, since supported_pf() is
> not used anywhere.
> 

Oops, you're right. I removed the last user in 
cd34be062c057f24771c48ce59a6c54a2f2e31b2, which was written after this 
patch. I'll send a patch to remove the function.



More information about the wine-devel mailing list