From 98fd7fde9f4efd6bfa3b7f1f760f1ae7789fe608 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Sun, 12 Nov 2017 20:20:03 +0000 Subject: [PATCH] More titles are starting to work again, Turok Evolution is happy now! --- src/CxbxKrnl/EmuKrnlNt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CxbxKrnl/EmuKrnlNt.cpp b/src/CxbxKrnl/EmuKrnlNt.cpp index a579f6fb1..386ba32af 100644 --- a/src/CxbxKrnl/EmuKrnlNt.cpp +++ b/src/CxbxKrnl/EmuKrnlNt.cpp @@ -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 (superBlock.ClusterSize > 0) { - XboxSizeInfo->SectorsPerAllocationUnit = superBlock.ClusterSize / XboxSizeInfo->BytesPerSector; + XboxSizeInfo->SectorsPerAllocationUnit = superBlock.ClusterSize; } - XboxSizeInfo->TotalAllocationUnits.QuadPart = partitionTable.TableEntries[partitionNumber - 1].LBASize * XboxSizeInfo->SectorsPerAllocationUnit; - XboxSizeInfo->AvailableAllocationUnits.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->BytesPerSector; RETURN(STATUS_SUCCESS); }