mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Removed S_IFREG for files.
svn path=/trunk/; revision=2881
This commit is contained in:
parent
ff2c349be8
commit
608baa209c
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ int _fstat(int fd, struct stat *statbuf)
|
|||
|
||||
statbuf->st_dev = fd;
|
||||
statbuf->st_size = FileInformation.nFileSizeLow;
|
||||
statbuf->st_mode = S_IREAD | S_IFREG;
|
||||
statbuf->st_mode = S_IREAD;
|
||||
if (FileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) statbuf->st_mode |= S_IFDIR;
|
||||
if (!(FileInformation.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) statbuf->st_mode |= S_IWRITE;
|
||||
return 0;
|
||||
|
@ -73,7 +73,7 @@ __int64 _fstati64 (int fd, struct _stati64* statbuf)
|
|||
statbuf->st_dev = fd;
|
||||
statbuf->st_size = (((__int64)FileInformation.nFileSizeHigh) << 32) +
|
||||
FileInformation.nFileSizeLow;
|
||||
statbuf->st_mode = S_IREAD | S_IFREG;
|
||||
statbuf->st_mode = S_IREAD;
|
||||
if (FileInformation.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) statbuf->st_mode |= S_IFDIR;
|
||||
if (!(FileInformation.dwFileAttributes & FILE_ATTRIBUTE_READONLY)) statbuf->st_mode |= S_IWRITE;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue