summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/format/preload.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ba76d00..7d62c03 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
17-08-28 Cyrille Bagard <nocbos@gmail.com>
+ * src/format/preload.c:
+ Fix a mistake when adding preloaded instructions.
+
+17-08-28 Cyrille Bagard <nocbos@gmail.com>
+
* src/gtkext/gtkstatusstack.c:
Use a GtkStack widget to display the editor status information.
diff --git a/src/format/preload.c b/src/format/preload.c
index 14bb4b0..552601e 100644
--- a/src/format/preload.c
+++ b/src/format/preload.c
@@ -309,7 +309,7 @@ bool _g_preload_info_add_instruction(GPreloadInfo *info, GArchInstruction *instr
}
- result = _g_preload_info_has_instruction_for(info, g_arch_instruction_get_range(instr));
+ result = !_g_preload_info_has_instruction_for(info, g_arch_instruction_get_range(instr));
if (result)
insert_item_into_flat_array(&info->instructions, &instr, sizeof(GArchInstruction *),