summaryrefslogtreecommitdiff
path: root/plugins/ropgadgets
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-21 12:08:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-21 12:08:29 (GMT)
commit7e5b1add6fdeb74b2356acf8ccf7009f45cfa85e (patch)
treeb7373554017e97fcbe24db79d9818272764e858d /plugins/ropgadgets
parent5dd935b27a765177960bdfe4d2fcb296cbbd41da (diff)
Changed the hierarchy of format objects.
Diffstat (limited to 'plugins/ropgadgets')
-rw-r--r--plugins/ropgadgets/finder.c4
-rw-r--r--plugins/ropgadgets/select.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/ropgadgets/finder.c b/plugins/ropgadgets/finder.c
index 3fa1ea4..5655735 100644
--- a/plugins/ropgadgets/finder.c
+++ b/plugins/ropgadgets/finder.c
@@ -29,7 +29,7 @@
#include <core/processors.h>
-#include <format/format.h>
+#include <format/known.h>
#include "helper.h"
@@ -384,7 +384,7 @@ found_rop_list *list_all_gadgets(GExeFormat *format, unsigned int max_depth, upd
g_object_ref(G_OBJECT(format));
domain.format = format;
- domain.content = g_binary_format_get_content(G_BIN_FORMAT(format));
+ domain.content = g_known_format_get_content(G_KNOWN_FORMAT(format));
target = g_exe_format_get_target_machine(format);
domain.proc = get_arch_processor_for_key(target);
diff --git a/plugins/ropgadgets/select.c b/plugins/ropgadgets/select.c
index be2086e..aebe433 100644
--- a/plugins/ropgadgets/select.c
+++ b/plugins/ropgadgets/select.c
@@ -40,6 +40,7 @@
#include <common/cpp.h>
#include <common/extstr.h>
#include <core/processors.h>
+#include <format/known.h>
#include <gui/core/global.h>
#include <gtkext/easygtk.h>
@@ -1511,7 +1512,7 @@ static void add_new_gadgets_for_category(GExeFormat *format, GtkComboBoxText *co
char *partial_markup; /* Contenu de la ligne visée */
GtkTreeIter iter; /* Point d'insertion */
- content = g_binary_format_get_content(G_BIN_FORMAT(format));
+ content = g_known_format_get_content(G_KNOWN_FORMAT(format));
/* Conversion en contenu textuel */