summaryrefslogtreecommitdiff
path: root/src/arch/dalvik/decomp/const.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/dalvik/decomp/const.c')
-rw-r--r--src/arch/dalvik/decomp/const.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/arch/dalvik/decomp/const.c b/src/arch/dalvik/decomp/const.c
index 47a859e..98133ac 100644
--- a/src/arch/dalvik/decomp/const.c
+++ b/src/arch/dalvik/decomp/const.c
@@ -83,7 +83,6 @@ GDecInstruction *dalvik_decomp_instr_const_str(const GArchInstruction *instr, GD
GArchOperand *operand; /* Opérande de l'instruction */
GDecInstruction *reg; /* Pseudo-registre redéfini */
uint32_t index; /* Indice de la chaîne */
- GDexFormat *format; /* Accès aux constantes */
const char *value; /* Chaîne de caractères */
GDecInstruction *str; /* Chaîne décompilée */
@@ -93,8 +92,7 @@ GDecInstruction *dalvik_decomp_instr_const_str(const GArchInstruction *instr, GD
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"));
- value = get_string_from_dex_pool(format, index);
+ value = get_string_from_dex_pool(G_DEX_FORMAT(g_dec_context_get_format(ctx)), index);
if (value == NULL) return NULL;
str = g_str_expression_new(value);