Skip to content

Commit 932aa62

Browse files
committed
[FREELDR] Test
1 parent a398143 commit 932aa62

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎boot/freeldr/freeldr/arch/i386/hwdisk.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ DiskOpen(CHAR* Path, OPENMODE OpenMode, ULONG* FileId)
141141
if (!Context)
142142
return ENOMEM;
143143

144+
if (DriveType == CdromController && SectorSize == 512)
145+
SectorSize = 2048;
144146
Context->DriveNumber = DriveNumber;
145147
Context->IsFloppy = (DriveType == FloppyDiskPeripheral);
146148
Context->SectorSize = SectorSize;

0 commit comments

Comments
 (0)