From 99b937362d1dffa8df7d02ad588680c761b34ea9 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Wed, 27 Nov 2002 20:56:28 +0000 Subject: [PATCH] Fixed the return value in ferror. svn path=/trunk/; revision=3802 --- reactos/lib/msvcrt/stdio/ferror.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/reactos/lib/msvcrt/stdio/ferror.c b/reactos/lib/msvcrt/stdio/ferror.c index 2ecfeccfc77..f1b5bc7bc1f 100644 --- a/reactos/lib/msvcrt/stdio/ferror.c +++ b/reactos/lib/msvcrt/stdio/ferror.c @@ -7,22 +7,9 @@ int ferror(FILE *stream); #endif -//int *_errno(void) -//{ -// return(&GetThreadData()->terrno); -//} -//int __set_errno(int error) -//{ -// PTHREADDATA ThreadData; -// ThreadData = GetThreadData(); -// if (ThreadData) -// ThreadData->terrno = error; -// return(error); -//} int *_errno(void); int ferror(FILE *stream) { -// return stream->_flag & _IOERR; - return *_errno(); + return stream->_flag & _IOERR; }