From d91239074b9042988d08093948059096942bdcfc Mon Sep 17 00:00:00 2001
From: Cyrille Bagard <nocbos@gmail.com>
Date: Mon, 28 Aug 2017 23:43:22 +0200
Subject: Fixed a mistake when adding preloaded instructions.

---
 ChangeLog            | 5 +++++
 src/format/preload.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

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 *),
-- 
cgit v0.11.2-87-g4458