summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscExtractor.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-03-22 17:44:47 +0100
committerGitHub <noreply@github.com>2019-03-22 17:44:47 +0100
commit0b3385ac1f4f2d40f5d2489d371b745271baad6a (patch)
tree6c5360f2a95c3fe842c1922027346cec8b6d8de5 /Source/Core/DiscIO/DiscExtractor.cpp
parent0a1aacb5d007dcc365e1de108632e7a29ed55605 (diff)
parentc558803cbd86212f1d69c908b2a3b78f9006ad75 (diff)
Merge pull request #7919 from JosJuice/disc-extractor-cert-h3
DiscExtractor: Fix extracting certificate chain and H3 hashes
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.cpp')
-rw-r--r--Source/Core/DiscIO/DiscExtractor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp
index 3bfdbc2c11..c9a26f5bdb 100644
--- a/Source/Core/DiscIO/DiscExtractor.cpp
+++ b/Source/Core/DiscIO/DiscExtractor.cpp
@@ -205,7 +205,7 @@ bool ExportCertificateChain(const Volume& volume, const Partition& partition,
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 ExportH3Hashes(const Volume& volume, const Partition& partition,
@@ -219,7 +219,7 @@ bool ExportH3Hashes(const Volume& volume, const Partition& partition,
if (!offset)
return false;
- return ExportData(volume, PARTITION_NONE, *offset, 0x18000, export_filename);
+ return ExportData(volume, PARTITION_NONE, partition.offset + *offset, 0x18000, export_filename);
}
bool ExportHeader(const Volume& volume, const Partition& partition,