Socket resets randomly
Michael Stefaniuc
mstefani at redhat.com
Sat Sep 9 06:43:56 CDT 2006
James Hawkins wrote:
> On 9/8/06, Ryan Miller <rmiller at auctionpay.com> wrote:
>> + /* In Windows, if setsockopt succeeds, GetLastError() always
>> returns zero.
>> + The native wininet.dll expects this behavior, and does not always
>> + check the return value of setsockopt() first.*/
>> + SetLastError(0);
>> +
>
>
> 0 is ERROR_SUCCESS, and you need to use that define.
find -name '*.[ch]' | xargs grep 'SetLastError( *0 *)' | wc -l
117
Time for a new Janitorial mini task?
bye
michael
--
Michael Stefaniuc Tel.: +49-711-96437-199
Sr. Network Engineer Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani at redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
D-70178 Stuttgart
More information about the wine-devel
mailing list