1
0
Fork 0

fix info.size not being set in memory fallback path

This commit is contained in:
AzuLX 2026-01-10 21:51:43 +00:00
parent 73b6ce65a2
commit 7d8709e892
No known key found for this signature in database
GPG Key ID: BED7E7DC23A637BC
1 changed files with 1 additions and 0 deletions

View File

@ -1009,6 +1009,7 @@ bool ModLoad(duint Base, duint Size, const char* FullPath, bool loadSymbols, HAN
info.mappedData.realloc(actualSize);
if(MemRead(Base, info.mappedData(), info.mappedData.size()))
{
info.isVirtual = true; // Process memory is SEC_IMAGE mapped
info.loadedSize = (DWORD)actualSize;
GetModuleInfo(info, (ULONG_PTR)info.mappedData());
info.size = HEADER_FIELD(info.headers, SizeOfImage);