Kernel - Fix compilation on x86_64 and armv7 (for MM changes)
[tpg/acess2.git] / KernelLand / Modules / Filesystems / NTFS / dir.c
index dc5fb7c..f72c637 100644 (file)
@@ -84,8 +84,7 @@ int NTFS_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX])
                vcn ++;
        }
        if( !ent ) {
-               LEAVE('i', 1);
-               return -1;
+               LEAVE_RET('i', -1);
        }
 
        // TODO: This is not future-proof
@@ -273,6 +272,7 @@ tVFS_Node *NTFS_int_CreateNode(tNTFS_Disk *Disk, Uint64 MFTEntry)
                ret = &types.tpl_file.Node;
                ret->Type = &gNTFS_FileType;
                types.tpl_file.Data = NTFS_GetAttrib(Disk, MFTEntry, NTFS_FileAttrib_Data, "", 0); 
+               ret->Size = types.tpl_file.Data->DataSize;
        }
        ret->Inode = MFTEntry;
        ret->ImplPtr = Disk;

UCC git Repository :: git.ucc.asn.au