Fix CIA content hash validation fail.

This commit is contained in:
jakcron
2016-03-20 11:34:50 +08:00
parent 925d1297f3
commit 9dc611bbbf
+1 -1
View File
@@ -169,7 +169,7 @@ void tmd_print(tmd_context* ctx)
fprintf(stdout, "\n");
fprintf(stdout, "Content size: %016"PRIx64"\n", getbe64(chunk->size));
switch(ctx->content_hash_stat[getbe16(chunk->index)]) {
switch(ctx->content_hash_stat[i]) {
case 1: memdump(stdout, "Content hash [OK]: ", chunk->hash, 32); break;
case 2: memdump(stdout, "Content hash [FAIL]: ", chunk->hash, 32); break;
default: memdump(stdout, "Content hash: ", chunk->hash, 32); break;