diff options
Diffstat (limited to 'src/gtkext/gtkstatusstack.c')
-rw-r--r-- | src/gtkext/gtkstatusstack.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gtkext/gtkstatusstack.c b/src/gtkext/gtkstatusstack.c index e9a61d8..148dd03 100644 --- a/src/gtkext/gtkstatusstack.c +++ b/src/gtkext/gtkstatusstack.c @@ -462,7 +462,7 @@ void gtk_status_stack_update_current_instruction(GtkStatusStack *stack, const GL GExeFormat *format; /* Format de binaire à traiter */ const mrange_t *range; /* Emplacement d'instruction */ const vmpa2t *addr; /* Localisation de départ */ - GBinPortion *portions; /* Portions binaires existantes*/ + GPortionLayer *layer; /* Couche première de portions */ GBinPortion *portion; /* Zone mémoire d'appartenance */ const char *text; /* Texte au contenu à copier */ GBinSymbol *symbol; /* Symbole présent à l'adresse */ @@ -491,9 +491,9 @@ void gtk_status_stack_update_current_instruction(GtkStatusStack *stack, const GL /* Zone d'appartenance */ - portions = g_exe_format_get_portions(format); + layer = g_exe_format_get_main_layer(format); - portion = g_binary_portion_find_at_addr(portions, addr, (GdkRectangle []) { }); + portion = g_portion_layer_find_portion_at_addr(layer, addr, (GdkRectangle []) { }); text = g_binary_portion_get_desc(portion); @@ -502,6 +502,8 @@ void gtk_status_stack_update_current_instruction(GtkStatusStack *stack, const GL else info->segment = strdup(_("Binary")); + g_object_unref(G_OBJECT(layer)); + /* Adresses de base */ vmpa2_phys_to_string(addr, MDS_UNDEFINED, info->phys, NULL); |