summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-28 21:43:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-28 21:43:22 (GMT)
commitd91239074b9042988d08093948059096942bdcfc (patch)
tree1ed2b727bfc898502f7a71236e197a9c2aba1dd4 /src/format
parent279ed42e7b1b8d9d0ae95c67972c7009e504cc92 (diff)
Fixed a mistake when adding preloaded instructions.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/preload.c2
1 files changed, 1 insertions, 1 deletions
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 *),