[PATCH] ws2_32: Add support to disable networking with envvar WINENONET=1

Bruno Jesus 00cpxxx at gmail.com
Thu Dec 8 13:30:11 CST 2016


On Thu, Dec 8, 2016 at 4:41 PM, Stefan Dösinger
<stefandoesinger at gmail.com> wrote:
> Am 2016-12-07 um 06:27 schrieb Bruno Jesus:
>> @@ -2433,6 +2438,12 @@ static int WS2_send( int fd, struct ws2_async *wsa, int flags )
>>      union generic_unix_sockaddr unix_addr;
>>      int n, ret;
>>
>> +    if (network_disabled)
>> +    {
>> +        errno = EHOSTUNREACH;
>> +        return -1;
>> +    }
>> +
> Shouldn't it be possible to achieve a similar effect with a LD_PRELOAD library?

Sorry, I don't get what you mean. What would I preload to make Wine
network fail?



More information about the wine-devel mailing list