From 60c1e2643efa4ecbfe5f96a74812e012abde25b4 Mon Sep 17 00:00:00 2001 From: cypherpunk Date: Sun, 24 Nov 2013 16:20:22 +0100 Subject: [PATCH] fixed Dumper::GetPE32Data(char*, DWORD, UE_SECTIONNAME) returning bad ptr --- TitanEngine/TitanEngine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TitanEngine/TitanEngine.cpp b/TitanEngine/TitanEngine.cpp index edf44b9..3f2aa70 100644 --- a/TitanEngine/TitanEngine.cpp +++ b/TitanEngine/TitanEngine.cpp @@ -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); if(WhichData == UE_SECTIONNAME) { - return((ULONG_PTR)PESections->Name); + return((ULONG)*((DWORD*)PESections->Name)); } else if(WhichData == UE_SECTIONVIRTUALOFFSET) {