3

Suppose the decompiler came up with something like this:

if (Status >= 0)
{
  // ... some other pseudo code
}

Is it possible to prettify this code with the NT_SUCCESS() macro, like this:

if (NT_SUCCESS(Status))
{
  // ... some other pseudo code
}

... which codifies the same condition as shown in the previous pseudo code? I haven't found a way as of yet. It's cosmetic, sure, but it still would be nice to be able to make this sort of adjustment.

Version of IDA 7.7 with matching decompiler.

1
  • 2
    I have a similar question, i noticed there are some codes is duplicated in multiple functions. I think it is a inline-function, but how can i collapse it as a inline-function in the Hex-Rays?
    – Ox9A82
    Jan 13, 2022 at 8:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.