1
0
Fork 0

Update module.cpp

Closes #2971
This commit is contained in:
not6 2022-11-17 04:08:05 +01:00 committed by GitHub
parent 18647a49ea
commit 9d7cc256eb
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -743,6 +743,8 @@ void GetModuleInfo(MODINFO & Info, ULONG_PTR FileMapVA)
curSection.addr = ntSection->VirtualAddress + Info.base;
curSection.size = ntSection->Misc.VirtualSize;
if(!curSection.size)
curSection.size = ntSection->SizeOfRawData;
// Null-terminate section name
char sectionName[IMAGE_SIZEOF_SHORT_NAME + 1];