mirror of https://github.com/x64dbg/TitanEngine
fixed Dumper::GetPE32Data(char*, DWORD, UE_SECTIONNAME) returning bad ptr
This commit is contained in:
parent
72b5f87d10
commit
60c1e2643e
|
|
@ -5135,7 +5135,7 @@ __declspec(dllexport) long long TITCALL GetPE32DataFromMappedFile(ULONG_PTR File
|
||||||
PESections = (PIMAGE_SECTION_HEADER)((ULONG_PTR)PESections + WhichSection * IMAGE_SIZEOF_SECTION_HEADER);
|
PESections = (PIMAGE_SECTION_HEADER)((ULONG_PTR)PESections + WhichSection * IMAGE_SIZEOF_SECTION_HEADER);
|
||||||
if(WhichData == UE_SECTIONNAME)
|
if(WhichData == UE_SECTIONNAME)
|
||||||
{
|
{
|
||||||
return((ULONG_PTR)PESections->Name);
|
return((ULONG)*((DWORD*)PESections->Name));
|
||||||
}
|
}
|
||||||
else if(WhichData == UE_SECTIONVIRTUALOFFSET)
|
else if(WhichData == UE_SECTIONVIRTUALOFFSET)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue