set_errno patch

Alexandre Julliard julliard at
Thu May 31 16:49:42 CDT 2001

Francois Gouget <fgouget at> writes:

>    MSVCRT__set_errno should be able to set errno to 0. It's called at
> least once explicitly with 0 in dir.c, but many other times it is
> called with a GetLastError() that may return 0.

I don't think it is ever correct to set errno to 0. Code that does
that should be fixed to provide a valid error code instead.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list