diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2020-07-14 11:01:17 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2020-07-14 11:01:17 (GMT) | 
| commit | de82c8165e61e3c19be184dbc00f66bfc7479c76 (patch) | |
| tree | 14a1f60c2c975bd2e8a637098ca5948c3637aed8 /plugins/ropgadgets | |
| parent | 2bd3ea7249d1234204c1b70abac8bc46e221fb95 (diff) | |
Updated the code handling binary contents.
Diffstat (limited to 'plugins/ropgadgets')
| -rw-r--r-- | plugins/ropgadgets/select.c | 12 | 
1 files changed, 7 insertions, 5 deletions
| diff --git a/plugins/ropgadgets/select.c b/plugins/ropgadgets/select.c index aebe433..9df71bb 100644 --- a/plugins/ropgadgets/select.c +++ b/plugins/ropgadgets/select.c @@ -474,7 +474,7 @@ static GtkWidget *load_and_populate_current_project_binaries(GObject *ref, gint      GLoadedContent **contents;              /* Liste de contenus chargés   */      size_t count;                           /* Taille de cette liste       */      size_t i;                               /* Boucle de parcours          */ -    GLoadedBinary *binary;                  /* Contenu de code binaire     */  +    char *desc;                             /* Description de contenu      */      GtkTreeIter iter;                       /* Point d'insertion           */      GtkCellRenderer *renderer;              /* Moteur de rendu de colonne  */ @@ -498,15 +498,17 @@ static GtkWidget *load_and_populate_current_project_binaries(GObject *ref, gint          {              if (G_IS_LOADED_BINARY(contents[i]))              { -                binary = G_LOADED_BINARY(contents[i]); +                desc = g_loaded_content_describe(contents[i], true);                  gtk_list_store_append(store, &iter);                  gtk_list_store_set(store, &iter, -                                   CPB_BINARY, binary, -                                   CPB_FILENAME, g_loaded_binary_get_name(binary, true), +                                   CPB_BINARY, contents[i], +                                   CPB_FILENAME, desc,                                     -1); -                if (binary == (GLoadedBinary *)current) +                free(desc); + +                if (contents[i] == current)                      *selected = i;              } | 
