diff options
Diffstat (limited to 'src/analysis/disass')
-rw-r--r-- | src/analysis/disass/disassembler.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/analysis/disass/disassembler.c b/src/analysis/disass/disassembler.c index 990ab0f..2f9d293 100644 --- a/src/analysis/disass/disassembler.c +++ b/src/analysis/disass/disassembler.c @@ -116,6 +116,11 @@ G_DEFINE_TYPE(GDelayedDisassembly, g_delayed_disassembly, G_TYPE_DELAYED_WORK); static void g_delayed_disassembly_class_init(GDelayedDisassemblyClass *klass) { + GDelayedWorkClass *work; /* Version en classe parente */ + + work = G_DELAYED_WORK_CLASS(klass); + + work->run = (run_task_fc)g_delayed_disassembly_process; } @@ -134,7 +139,6 @@ static void g_delayed_disassembly_class_init(GDelayedDisassemblyClass *klass) static void g_delayed_disassembly_init(GDelayedDisassembly *disass) { - G_DELAYED_WORK(disass)->run = (run_task_fc)g_delayed_disassembly_process; } @@ -711,6 +715,6 @@ void disassemble_binary(GLoadedBinary *binary, GArchInstruction **instrs, GCodeB g_signal_connect(disass, "work-completed", G_CALLBACK(ack), binary); queue = get_work_queue(); - g_work_queue_schedule_work(queue, G_DELAYED_WORK(disass)); + g_work_queue_schedule_work(queue, G_DELAYED_WORK(disass), DEFAULT_WORK_GROUP); } |