Skip to content

Commit bea6345

Browse files
committed
xci: fix hash suffix for non-root partitions
1 parent d4b9b1f commit bea6345

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ void xci_process(xci_ctx_t *ctx) {
9696
ctx->partition_ctx.offset = ctx->header.hfs0_offset;
9797
ctx->partition_ctx.tool_ctx = &blank_ctx;
9898
ctx->partition_ctx.name = "rootpt";
99+
ctx->partition_ctx.hash_suffix = NULL;
99100
hfs0_process(&ctx->partition_ctx);
100101

101102
if (ctx->partition_ctx.header->num_files > 4) {
@@ -127,7 +128,7 @@ void xci_process(xci_ctx_t *ctx) {
127128
cur_ctx->offset = ctx->partition_ctx.offset + hfs0_get_header_size(ctx->partition_ctx.header) + cur_file->offset;
128129
cur_ctx->tool_ctx = &blank_ctx;
129130
cur_ctx->file = ctx->file;
130-
cur_ctx->hash_suffix = compatiblity_type_ptr;
131+
cur_ctx->hash_suffix = NULL;
131132
hfs0_process(cur_ctx);
132133
}
133134

0 commit comments

Comments
 (0)