1

I need to add new case, so here is that I do.

  1. Copy the jump table for switch statement to 0048199C and add new ref to 4819C0. enter image description here
  2. Add new instructions below enter image description here
  3. Set new address 0048199Center image description here
  4. In the indirect table for switch statement (004061C4) change the one 7 to 8 enter image description here
  5. Apply patches and try using a new case and see how that works. It's ok. The program does what I want.

After that click F5 and finally got such error: enter image description here

What's wrong and how do I fix it? I'm using IDA v7.0.170914

1

I found a solution to my problem.

Edit - Other - Specify switch idiom...

Set new value for Number of elements: 9

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.