mirror of
https://github.com/DarkMatterCore/nxdumptool.git
synced 2024-11-22 18:26:39 +00:00
Fix unaligned reads from the gamecard secure storage area.
Big thanks to Whovian for finding the bug and testing the change.
This commit is contained in:
parent
b806c2e7d0
commit
083874bd4e
1 changed files with 1 additions and 1 deletions
|
@ -977,7 +977,7 @@ static bool gamecardReadStorageArea(void *out, u64 read_size, u64 offset, bool l
|
|||
|
||||
memcpy(out_u8, g_gameCardReadBuf + data_start_offset, out_chunk_size);
|
||||
|
||||
success = (block_size > GAMECARD_READ_BUFFER_SIZE ? gamecardReadStorageArea(out_u8 + out_chunk_size, read_size - out_chunk_size, base_offset + out_chunk_size, false) : true);
|
||||
success = (block_size > GAMECARD_READ_BUFFER_SIZE ? gamecardReadStorageArea(out_u8 + out_chunk_size, read_size - out_chunk_size, offset + out_chunk_size, false) : true);
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
Loading…
Reference in a new issue