2

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
  • 1
    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 at 8:08

Your Answer

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

Browse other questions tagged or ask your own question.