mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
[NTFS] - Fix some more issues, including remaining issues marked as "unresolved" from CR-123:
-Add define for indexed flag for resident attributes, RA_INDEXED. -CreateBTreeFromIndex() - Don't try to read index entries beyond attribute length. -Move NtfsAddFileNameToDirectory() from dirctl.c to mft.c (no changes to function). -SetResidentAttributeDataLength() - Don't try to free AttribData if it hasn't been allocated. Cast IndexRecord to PUCHAR for WriteAttribute(), and cast BitmapData to PCHAR for ReadAttribute() (make gcc happy). -Replace magic number 16 with a define, NTFS_FILE_FIRST_USER_FILE. svn path=/branches/GSoC_2016/NTFS/; revision=75371
This commit is contained in:
parent
430ce0a9e3
commit
935fcd1b35
6 changed files with 284 additions and 271 deletions
|
@ -185,7 +185,7 @@ NtfsOpenFileById(PDEVICE_EXTENSION DeviceExt,
|
|||
|
||||
DPRINT1("NtfsOpenFileById(%p, %p, %I64x, %p)\n", DeviceExt, FileObject, MftId, FoundFCB);
|
||||
|
||||
ASSERT(MftId < 0x10);
|
||||
ASSERT(MftId < NTFS_FILE_FIRST_USER_FILE);
|
||||
if (MftId > 0xb) /* No entries are used yet beyond this */
|
||||
{
|
||||
return STATUS_OBJECT_NAME_NOT_FOUND;
|
||||
|
@ -375,7 +375,7 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
|||
return STATUS_INVALID_PARAMETER;
|
||||
|
||||
MFTId = (*(PULONGLONG)FileObject->FileName.Buffer) & NTFS_MFT_MASK;
|
||||
if (MFTId < 0x10)
|
||||
if (MFTId < NTFS_FILE_FIRST_USER_FILE)
|
||||
{
|
||||
Status = NtfsOpenFileById(DeviceExt, FileObject, MFTId, &Fcb);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue