Skip to content

Commit

Permalink
xci: fix hash suffix for non-root partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Apr 6, 2020
1 parent d4b9b1f commit bea6345
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit bea6345

Please sign in to comment.