From ca543abe1e5cd23ae2846ce20f8f136eea6ae7c5 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 12 May 2014 14:25:53 +0000 Subject: [PATCH] [CRT] * Update ferror(). CORE-8080 svn path=/trunk/; revision=63255 --- reactos/lib/sdk/crt/stdio/file.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/reactos/lib/sdk/crt/stdio/file.c b/reactos/lib/sdk/crt/stdio/file.c index 1dc27d8413c..b7dbbb72ec2 100644 --- a/reactos/lib/sdk/crt/stdio/file.c +++ b/reactos/lib/sdk/crt/stdio/file.c @@ -2240,13 +2240,7 @@ int CDECL feof(FILE* file) */ int CDECL ferror(FILE* file) { - int ret; - - _lock_file(file); - ret = file->_flag & _IOERR; - _unlock_file(file); - - return ret; + return file->_flag & _IOERR; } /*********************************************************************