Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assigned global byte or boolean variable probleam #66

Closed
csitGenny opened this issue Mar 21, 2021 · 1 comment
Closed

assigned global byte or boolean variable probleam #66

csitGenny opened this issue Mar 21, 2021 · 1 comment

Comments

@csitGenny
Copy link

csitGenny commented Mar 21, 2021

For the byte or boolean variables that has been assigned initially, the Delphi compiler will generate data "xx 8D 40 00", but the address 0x00408Dxx is valid image address usually, so all these variables IDR will generate errors global variables "^gvar_00408Dxx". When name any one variable manually, all these variables will renamed same.

Can correct it follow (May cause other problems):
Misc.cpp IsValidImageAdr function:

bool __fastcall IsValidImageAdr(DWORD Adr)
{
if (Adr >> 8 == 0x408D) return false; //Add by ZGL assigned global byte or boolean variable
if (Adr >= CodeBase && Adr < CodeBase + ImageSize)
return true;
else
return false;
}

@crypto2011
Copy link
Owner

Done. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants