binaryninja-api
binaryninja-api copied to clipboard
Better discoverability of parser error on Change Type dialog
The error message that appears when changing function prototypes should be more understandable.
For example when I try to apply function prototype for DllMain function as BOOL __stdcall DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved), it says "Error parsing specified type" but it is not clear what is wrong with it. In this example DWORD and LPVOID is unknown to BN. Modifying structures is different in a way that it shows exactly what is wrong about definition.
It's not easily discoverable, but if you mouse over the error text in the type dialog, the tooltip will have a more descriptive error message from the parser. Changing this issue to be about displaying that in a better manner
