set_errno patch
Francois Gouget
fgouget at free.fr
Wed May 30 21:41:06 CDT 2001
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.
Changelog:
* dlls/msvcrt/errno.c
Map NO_ERROR to 0
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
1 + e ^ ( i * pi ) = 0
-------------- next part --------------
Index: dlls/msvcrt/errno.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/errno.c,v
retrieving revision 1.4
diff -u -r1.4 errno.c
--- dlls/msvcrt/errno.c 2001/04/10 23:25:25 1.4
+++ dlls/msvcrt/errno.c 2001/05/30 17:20:50
@@ -27,6 +27,7 @@
{
#define ERR_CASE(oserr) case oserr:
#define ERR_MAPS(oserr,crterr) case oserr:*errno = crterr;break;
+ ERR_MAPS(NO_ERROR, 0);
ERR_CASE(ERROR_ACCESS_DENIED)
ERR_CASE(ERROR_NETWORK_ACCESS_DENIED)
ERR_CASE(ERROR_CANNOT_MAKE)
More information about the wine-patches
mailing list