diff options
Diffstat (limited to 'src/arch/dalvik/decomp/new.c')
-rw-r--r-- | src/arch/dalvik/decomp/new.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/arch/dalvik/decomp/new.c b/src/arch/dalvik/decomp/new.c index ff80411..75dc259 100644 --- a/src/arch/dalvik/decomp/new.c +++ b/src/arch/dalvik/decomp/new.c @@ -48,7 +48,6 @@ GDecInstruction *dalvik_decomp_instr_new_instance(const GArchInstruction *instr, GDecInstruction *result; /* Instruction à retourner */ GArchOperand *operand; /* Opérande de l'instruction */ uint32_t index; /* Indice dans la table */ - GDexFormat *format; /* Accès aux constantes */ GDataType *type; /* Type concerné par l'opérat° */ GBinRoutine *constructor; /* Constructeur reconstruit */ GDecInstruction *call; /* Appel au constructeur */ @@ -56,8 +55,7 @@ GDecInstruction *dalvik_decomp_instr_new_instance(const GArchInstruction *instr, operand = g_arch_instruction_get_operand(instr, 1); index = g_dalvik_pool_operand_get_index(G_DALVIK_POOL_OPERAND(operand)); - format = G_DEX_FORMAT(g_object_get_data(G_OBJECT(ctx), "format")); - type = get_type_from_dex_pool(format, index); + type = get_type_from_dex_pool(G_DEX_FORMAT(g_dec_context_get_format(ctx)), index); constructor = g_binary_routine_new_constructor(type); call = g_routine_call_new(constructor); |