Lines Matching refs:target_function
157 void* target_function, void *replacement_function,
161 // MAX_PREAMBLE_STUB_SIZE bytes of target_function
163 BOOL succeeded = ::VirtualProtect(reinterpret_cast<void*>(target_function),
173 SideStepError error_code = RawPatchWithStub(target_function,
182 succeeded = ::VirtualProtect(reinterpret_cast<void*>(target_function),
209 target_function,
221 SideStepError PreamblePatcher::RawPatch(void* target_function,
224 if (!target_function || !replacement_function || !original_function_stub ||
225 (*original_function_stub) || target_function == replacement_function) {
239 void* new_target = ResolveTarget(target_function);
240 if (new_target != target_function) {
241 target_function = new_target;
246 unsigned char* preamble_stub = AllocPreambleBlockNear(target_function);
256 target_function, replacement_function, preamble_stub,
273 target_function,
290 SideStepError PreamblePatcher::Unpatch(void* target_function,
293 SIDESTEP_ASSERT(target_function && replacement_function &&
295 if (!target_function || !replacement_function ||
300 // Before unpatching, target_function should be a JMP to
306 unsigned char* target = reinterpret_cast<unsigned char*>(target_function);
315 "target_function does not look like it was patched.");
322 // kRequiredTargetPatchBytes bytes of target_function