Skip to content

Commit

Permalink
Refactor a little bit
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Feb 23, 2024
1 parent 0e8325b commit b135b00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gum/backend-arm/gumstalker-arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1599,8 +1599,7 @@ _gum_stalker_modify_to_run_on_thread (GumStalker * self,
GumExecCtx * ctx;
guint32 pc;
GumArmWriter * cw;
GumAddress cpu_context_copy;
guint32 infect_body;
GumAddress cpu_context_copy, infect_body;

ctx = gum_stalker_create_exec_ctx (self, thread_id, NULL, NULL);
if ((cpu_context->cpsr & GUM_PSR_T_BIT) == 0)
Expand All @@ -1617,7 +1616,7 @@ _gum_stalker_modify_to_run_on_thread (GumStalker * self,
cpu_context_copy = GUM_ADDRESS (gum_arm_writer_cur (cw));
gum_arm_writer_put_bytes (cw, (guint8 *) cpu_context, sizeof (GumCpuContext));

infect_body = GPOINTER_TO_SIZE (gum_arm_writer_cur (cw));
infect_body = GUM_ADDRESS (gum_arm_writer_cur (cw));

gum_exec_ctx_write_arm_prolog (ctx, cw);

Expand Down

0 comments on commit b135b00

Please sign in to comment.