/* Convert file flags */
NtfsFileFlagsToAttributes(FileName->FileAttributes, &Info->FileAttributes);
- Info->EndOfFile.QuadPart = FileName->DataSize;
- Info->AllocationSize.QuadPart = FileName->AllocatedSize;
+ Info->EndOfFile.QuadPart = FileName->AllocatedSize;
+ Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize, DeviceExt->NtfsInfo.BytesPerCluster);
// Info->FileIndex=;
/* Convert file flags */
NtfsFileFlagsToAttributes(FileName->FileAttributes, &Info->FileAttributes);
- Info->EndOfFile.QuadPart = FileName->DataSize;
- Info->AllocationSize.QuadPart = FileName->AllocatedSize;
+ Info->EndOfFile.QuadPart = FileName->AllocatedSize;
+ Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize, DeviceExt->NtfsInfo.BytesPerCluster);
// Info->FileIndex=;
Info->EaSize = 0;
/* Convert file flags */
NtfsFileFlagsToAttributes(FileName->FileAttributes, &Info->FileAttributes);
- Info->EndOfFile.QuadPart = FileName->DataSize;
- Info->AllocationSize.QuadPart = FileName->AllocatedSize;
+ Info->EndOfFile.QuadPart = FileName->AllocatedSize;
+ Info->AllocationSize.QuadPart = ROUND_UP(FileName->AllocatedSize, DeviceExt->NtfsInfo.BytesPerCluster);
// Info->FileIndex=;
Info->EaSize = 0;