From 8ca6c8d869fc788e0158ba4634e1340a8390d5d4 Mon Sep 17 00:00:00 2001 From: "Mr. eXoDia" Date: Fri, 9 May 2014 21:52:14 +0200 Subject: [PATCH] fixed a bug with UE_SECTIONNAME in x64 --- TitanEngine/TitanEngine.PE.Data.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TitanEngine/TitanEngine.PE.Data.cpp b/TitanEngine/TitanEngine.PE.Data.cpp index aa9d1bc..69747e2 100644 --- a/TitanEngine/TitanEngine.PE.Data.cpp +++ b/TitanEngine/TitanEngine.PE.Data.cpp @@ -301,7 +301,8 @@ __declspec(dllexport) ULONG_PTR 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); + memcpy(sectionName, PESections->Name, 8); + return (ULONG_PTR)sectionName; } else if(WhichData == UE_SECTIONVIRTUALOFFSET) {