mirror of
https://github.com/reactos/reactos.git
synced 2026-07-06 23:44:40 +08:00
Added flushing of file streams.
svn path=/trunk/; revision=3040
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user