mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 05:32:55 +00:00
parent
0bd2bad093
commit
02d348bf34
1 changed files with 1 additions and 1 deletions
|
@ -2474,7 +2474,7 @@ IoWritePartitionTableEx(IN PDEVICE_OBJECT DeviceObject,
|
||||||
NumberOfEntries = EfiHeader->NumberOfEntries;
|
NumberOfEntries = EfiHeader->NumberOfEntries;
|
||||||
RtlCopyMemory(&DiskGuid, &EfiHeader->DiskGUID, sizeof(GUID));
|
RtlCopyMemory(&DiskGuid, &EfiHeader->DiskGUID, sizeof(GUID));
|
||||||
/* Count number of sectors needed to store partitions */
|
/* Count number of sectors needed to store partitions */
|
||||||
SectorsForPartitions = (NumberOfEntries * PARTITION_ENTRY_SIZE) / Disk->SectorSize;
|
SectorsForPartitions = ((ULONGLONG)NumberOfEntries * PARTITION_ENTRY_SIZE) / Disk->SectorSize;
|
||||||
/* Set first usable LBA: Legacy MBR + GPT header + Partitions entries */
|
/* Set first usable LBA: Legacy MBR + GPT header + Partitions entries */
|
||||||
FirstUsableLBA = SectorsForPartitions + 2;
|
FirstUsableLBA = SectorsForPartitions + 2;
|
||||||
/* Set last usable LBA: Last sector - GPT header - Partitions entries */
|
/* Set last usable LBA: Last sector - GPT header - Partitions entries */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue