Skip to content

Commit

Permalink
Merge pull request #29 from LIV2/mounter_offset
Browse files Browse the repository at this point in the history
Mounter: fix offset calculation in readblock()
  • Loading branch information
cdhooper authored Dec 4, 2023
2 parents 4aedb46 + 14ee7d4 commit 410ed77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mounter.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ static BOOL readblock(UBYTE *buf, ULONG block, ULONG id, struct MountData *md)
max_retries = 15;

request->iotd_Req.io_Command = CMD_READ;
request->iotd_Req.io_Offset = block << 9;
request->iotd_Req.io_Offset = block * md->blocksize;
request->iotd_Req.io_Data = buf;
request->iotd_Req.io_Length = md->blocksize;
for (i = 0; i < max_retries; i++) {
Expand Down

0 comments on commit 410ed77

Please sign in to comment.