mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
Fixed the return value in ferror.
svn path=/trunk/; revision=3802
This commit is contained in:
parent
d4386d7b53
commit
99b937362d
1 changed files with 1 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue