mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
Added flushing of file streams.
svn path=/trunk/; revision=3040
This commit is contained in:
parent
495dfc660f
commit
a64eec7e49
1 changed files with 5 additions and 1 deletions
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -34,6 +34,8 @@ int _fstat(int fd, struct stat *statbuf)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fflush(NULL);
|
||||||
|
|
||||||
memset (statbuf, 0, sizeof(struct stat));
|
memset (statbuf, 0, sizeof(struct stat));
|
||||||
|
|
||||||
dwFileType = GetFileType(handle);
|
dwFileType = GetFileType(handle);
|
||||||
|
@ -95,6 +97,8 @@ __int64 _fstati64 (int fd, struct _stati64* statbuf)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fflush(NULL);
|
||||||
|
|
||||||
memset(statbuf, 0, sizeof(struct _stati64));
|
memset(statbuf, 0, sizeof(struct _stati64));
|
||||||
|
|
||||||
dwFileType = GetFileType(handle);
|
dwFileType = GetFileType(handle);
|
||||||
|
|
Loading…
Reference in a new issue