More titles are starting to work again, Turok Evolution is happy now!

This commit is contained in:
Luke Usher 2017-11-12 20:20:03 +00:00 committed by PatrickvL
parent 66ef652cca
commit 98fd7fde9f
1 changed files with 3 additions and 3 deletions

View File

@ -1491,11 +1491,11 @@ XBSYSAPI EXPORTNUM(218) xboxkrnl::NTSTATUS NTAPI xboxkrnl::NtQueryVolumeInformat
// If there is a valid cluster size, we calculate SectorsPerAllocationUnit from that instead // If there is a valid cluster size, we calculate SectorsPerAllocationUnit from that instead
if (superBlock.ClusterSize > 0) { if (superBlock.ClusterSize > 0) {
XboxSizeInfo->SectorsPerAllocationUnit = superBlock.ClusterSize / XboxSizeInfo->BytesPerSector; XboxSizeInfo->SectorsPerAllocationUnit = superBlock.ClusterSize;
} }
XboxSizeInfo->TotalAllocationUnits.QuadPart = partitionTable.TableEntries[partitionNumber - 1].LBASize * XboxSizeInfo->SectorsPerAllocationUnit; XboxSizeInfo->TotalAllocationUnits.QuadPart = partitionTable.TableEntries[partitionNumber - 1].LBASize * XboxSizeInfo->BytesPerSector;
XboxSizeInfo->AvailableAllocationUnits.QuadPart = partitionTable.TableEntries[partitionNumber - 1].LBASize * XboxSizeInfo->SectorsPerAllocationUnit; XboxSizeInfo->AvailableAllocationUnits.QuadPart = partitionTable.TableEntries[partitionNumber - 1].LBASize * XboxSizeInfo->BytesPerSector;
RETURN(STATUS_SUCCESS); RETURN(STATUS_SUCCESS);
} }