From 491e11ca77166373e8b4549274d021083946aa7a Mon Sep 17 00:00:00 2001 From: Michael Dirks Date: Sat, 6 Feb 2016 00:22:24 +0100 Subject: [PATCH] Fix GetReturnAddress --- BlitzPointer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlitzPointer.cpp b/BlitzPointer.cpp index bc37dd5..28b6b24 100644 --- a/BlitzPointer.cpp +++ b/BlitzPointer.cpp @@ -31,7 +31,7 @@ DLL_METHOD intptr_t DLL_CALL BP_GetReturnAddress() { // We can simply deduce the Return Address like this because of that. //-- Parent_EBP = *EBP //-- Parent_RP = Parent_EBP + 16 - ReturnAddress = (*((intptr_t*)BasePointer) + 16); + ReturnAddress = *(intptr_t*)((*(intptr_t*)BasePointer) + 16); return ReturnAddress; }