Skip to content

Commit

Permalink
Update EBR.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Szymekk44 committed May 3, 2024
1 parent 7e5d3cb commit 80ecaeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Cosmos.HAL2/BlockDevice/EBR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ protected void ParsePartition(byte[] aEBR, int aLoc) //This should be int. ToUIn
}
else if (xSystemID != 0)
{
ulong xStartSector = BitConverter.ToUInt64(aEBR, aLoc + 8);
ulong xSectorCount = BitConverter.ToUInt64(aEBR, aLoc + 12);
ulong xStartSector = BitConverter.ToUInt32(aEBR, aLoc + 8);
ulong xSectorCount = BitConverter.ToUInt32(aEBR, aLoc + 12);

var xPartInfo = new PartInfo(xSystemID, xStartSector, xSectorCount);
Partitions.Add(xPartInfo);
Expand Down

0 comments on commit 80ecaeb

Please sign in to comment.