DiscIO: Fix TMD extraction

The offset that we read from the header is relative to the partition.
This commit is contained in:
Léo Lam 2017-08-25 17:30:17 +02:00
parent 5da26f33cf
commit 31b04149b3
1 changed files with 1 additions and 1 deletions

View File

@ -166,7 +166,7 @@ bool ExportTMD(const Volume& volume, const Partition& partition, const std::stri
if (!size || !offset)
return false;
return ExportData(volume, PARTITION_NONE, *offset, *size, export_filename);
return ExportData(volume, PARTITION_NONE, partition.offset + *offset, *size, export_filename);
}
bool ExportCertificateChain(const Volume& volume, const Partition& partition,