Fix GetReturnAddress

This commit is contained in:
Michael Dirks
2016-02-06 00:22:24 +01:00
parent 7af64687cc
commit 491e11ca77
+1 -1
View File
@@ -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;
}