From bea6345a48b42e534e736e03ec0673c7d66fb24e Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 5 Apr 2020 19:16:23 -0700 Subject: [PATCH] xci: fix hash suffix for non-root partitions --- xci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xci.c b/xci.c index 6532576..7a3fa00 100644 --- a/xci.c +++ b/xci.c @@ -96,6 +96,7 @@ void xci_process(xci_ctx_t *ctx) { ctx->partition_ctx.offset = ctx->header.hfs0_offset; ctx->partition_ctx.tool_ctx = &blank_ctx; ctx->partition_ctx.name = "rootpt"; + ctx->partition_ctx.hash_suffix = NULL; hfs0_process(&ctx->partition_ctx); if (ctx->partition_ctx.header->num_files > 4) { @@ -127,7 +128,7 @@ void xci_process(xci_ctx_t *ctx) { cur_ctx->offset = ctx->partition_ctx.offset + hfs0_get_header_size(ctx->partition_ctx.header) + cur_file->offset; cur_ctx->tool_ctx = &blank_ctx; cur_ctx->file = ctx->file; - cur_ctx->hash_suffix = compatiblity_type_ptr; + cur_ctx->hash_suffix = NULL; hfs0_process(cur_ctx); }