mirror of
https://github.com/reactos/reactos.git
synced 2025-05-16 15:50:24 +00:00
[NTFS]
Implement NtfsFileFlagsToAttributes() to fix some of the attributes of the MFT to make them usable by ReactOS. Would deserve a double-check svn path=/trunk/; revision=64753
This commit is contained in:
parent
d71653b9cb
commit
560d00e49b
2 changed files with 17 additions and 4 deletions
|
@ -109,4 +109,19 @@ NtfsDateTimeToFileTime(ULONGLONG NtfsTime,
|
|||
SystemTime->QuadPart = NtfsTime + 116444736000000000;
|
||||
}
|
||||
|
||||
VOID
|
||||
NtfsFileFlagsToAttributes(ULONG NtfsAttributes,
|
||||
PULONG FileAttributes)
|
||||
{
|
||||
*FileAttributes = NtfsAttributes;
|
||||
if ((NtfsAttributes & NTFS_FILE_TYPE_DIRECTORY) == NTFS_FILE_TYPE_DIRECTORY)
|
||||
{
|
||||
*FileAttributes = NtfsAttributes & ~NTFS_FILE_TYPE_DIRECTORY;
|
||||
*FileAttributes |= FILE_ATTRIBUTE_DIRECTORY;
|
||||
}
|
||||
|
||||
if (NtfsAttributes == 0)
|
||||
*FileAttributes = FILE_ATTRIBUTE_NORMAL;
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -686,11 +686,9 @@ VOID
|
|||
NtfsDateTimeToFileTime(ULONGLONG NtfsTime,
|
||||
PLARGE_INTEGER SystemTime);
|
||||
|
||||
#if 0
|
||||
VOID
|
||||
CdfsFileFlagsToAttributes(PFCB Fcb,
|
||||
PULONG FileAttributes);
|
||||
#endif
|
||||
NtfsFileFlagsToAttributes(ULONG NtfsAttributes,
|
||||
PULONG FileAttributes);
|
||||
|
||||
|
||||
/* rw.c */
|
||||
|
|
Loading…
Reference in a new issue