diff --git a/reactos/include/msvcrt/errno.h b/reactos/include/msvcrt/errno.h index 2d460a202ef..01d49949451 100644 --- a/reactos/include/msvcrt/errno.h +++ b/reactos/include/msvcrt/errno.h @@ -18,9 +18,9 @@ * DISCLAMED. This includes but is not limited to warranties of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * $Author: ekohl $ - * $Date: 2001/07/03 12:56:48 $ + * $Date: 2001/10/04 16:05:41 $ * */ @@ -98,7 +98,7 @@ extern "C" { int* _errno(void); #define errno (*_errno()) -int* __doserrno(void); +unsigned long* __doserrno(void); #define _doserrno (*__doserrno()) /* One of the MSVCRTxx libraries */ diff --git a/reactos/include/msvcrt/internal/tls.h b/reactos/include/msvcrt/internal/tls.h index c46362d484d..4a6bfb2f522 100644 --- a/reactos/include/msvcrt/internal/tls.h +++ b/reactos/include/msvcrt/internal/tls.h @@ -7,8 +7,8 @@ typedef struct _ThreadData { - int terrno; - unsigned long tdoserrno; + int terrno; /* *nix error code */ + unsigned long tdoserrno; /* Win32 error code (for I/O only) */ unsigned long long tnext; /* used by rand/srand */ char *lasttoken; /* used by strtok */ diff --git a/reactos/lib/msvcrt/stdlib/errno.c b/reactos/lib/msvcrt/stdlib/errno.c index 5aa3e505915..a77dba0fa7d 100644 --- a/reactos/lib/msvcrt/stdlib/errno.c +++ b/reactos/lib/msvcrt/stdlib/errno.c @@ -1,4 +1,4 @@ -/* $Id: errno.c,v 1.4 2001/10/03 02:15:34 ekohl Exp $ +/* $Id: errno.c,v 1.5 2001/10/04 16:06:36 ekohl Exp $ * */ @@ -6,7 +6,7 @@ #include #include -int *__doserrno(void) +unsigned long *__doserrno(void) { return(&GetThreadData()->tdoserrno); }