From 31b04149b3145c702b9febe3e24398c50bfd5b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 25 Aug 2017 17:30:17 +0200 Subject: [PATCH] DiscIO: Fix TMD extraction The offset that we read from the header is relative to the partition. --- Source/Core/DiscIO/DiscExtractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp index 4ebaf249fd..310ca41e9a 100644 --- a/Source/Core/DiscIO/DiscExtractor.cpp +++ b/Source/Core/DiscIO/DiscExtractor.cpp @@ -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,