staticCallHandler eip = do
-- the actual insn to patch is displaced by two bytes
let insn_ptr = intPtrToPtr (fromIntegral (eip - 2)) :: Ptr CUChar
-- call offset is displaced by one byte
staticCallHandler eip = do
-- the actual insn to patch is displaced by two bytes
let insn_ptr = intPtrToPtr (fromIntegral (eip - 2)) :: Ptr CUChar
-- call offset is displaced by one byte