Added flushing of file streams.

svn path=/trunk/; revision=3040
This commit is contained in:
Hartmut Birr 2002-06-10 21:28:36 +00:00
parent 495dfc660f
commit a64eec7e49

View file

@ -1,4 +1,4 @@
/* $Id: fstat.c,v 1.9 2002/05/07 22:31:26 hbirr Exp $
/* $Id: fstat.c,v 1.10 2002/06/10 21:28:36 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -34,6 +34,8 @@ int _fstat(int fd, struct stat *statbuf)
return -1;
}
fflush(NULL);
memset (statbuf, 0, sizeof(struct stat));
dwFileType = GetFileType(handle);
@ -95,6 +97,8 @@ __int64 _fstati64 (int fd, struct _stati64* statbuf)
return -1;
}
fflush(NULL);
memset(statbuf, 0, sizeof(struct _stati64));
dwFileType = GetFileType(handle);