Fix GetReturnAddress
This commit is contained in:
+1
-1
@@ -31,7 +31,7 @@ DLL_METHOD intptr_t DLL_CALL BP_GetReturnAddress() {
|
|||||||
// We can simply deduce the Return Address like this because of that.
|
// We can simply deduce the Return Address like this because of that.
|
||||||
//-- Parent_EBP = *EBP
|
//-- Parent_EBP = *EBP
|
||||||
//-- Parent_RP = Parent_EBP + 16
|
//-- Parent_RP = Parent_EBP + 16
|
||||||
ReturnAddress = (*((intptr_t*)BasePointer) + 16);
|
ReturnAddress = *(intptr_t*)((*(intptr_t*)BasePointer) + 16);
|
||||||
|
|
||||||
return ReturnAddress;
|
return ReturnAddress;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user