diff options
author | Zeex <zeex@rocketmail.com> | 2013-01-15 04:02:06 +0700 |
---|---|---|
committer | Zeex <zeex@rocketmail.com> | 2013-01-15 04:02:06 +0700 |
commit | fed3d67e29a3e134e5da6309783c4db0160a131c (patch) | |
tree | 6d4bfd6d1aed3e71dd9ce51d9138590574e32b60 /subhook_x86.c | |
parent | b4a5493e5b4afe613b340dbfe79e358b6ece5c62 (diff) | |
download | subhook-fed3d67e29a3e134e5da6309783c4db0160a131c.zip subhook-fed3d67e29a3e134e5da6309783c4db0160a131c.tar.gz subhook-fed3d67e29a3e134e5da6309783c4db0160a131c.tar.bz2 |
Rename some functions
Diffstat (limited to 'subhook_x86.c')
-rw-r--r-- | subhook_x86.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/subhook_x86.c b/subhook_x86.c index a838ed8..4be36ff 100644 --- a/subhook_x86.c +++ b/subhook_x86.c @@ -57,8 +57,8 @@ SUBHOOK_EXPORT int SUBHOOK_API subhook_install(struct subhook *hook) { if (subhook_is_installed(hook)) return -EINVAL; - src = subhook_get_source(hook); - dst = subhook_get_destination(hook); + src = subhook_get_src(hook); + dst = subhook_get_dst(hook); subhook_unprotect(src, SUBHOOK_JUMP_SIZE); memcpy(((struct subhook_x86 *)hook->arch)->code, src, SUBHOOK_JUMP_SIZE); @@ -79,13 +79,13 @@ SUBHOOK_EXPORT int SUBHOOK_API subhook_remove(struct subhook *hook) { if (!subhook_is_installed(hook)) return -EINVAL; - memcpy(subhook_get_source(hook), ((struct subhook_x86 *)hook->arch)->code, SUBHOOK_JUMP_SIZE); + memcpy(subhook_get_src(hook), ((struct subhook_x86 *)hook->arch)->code, SUBHOOK_JUMP_SIZE); subhook_set_flags(hook, subhook_get_flags(hook) & ~(SUBHOOK_FLAG_INSTALLED)); return 0; } -SUBHOOK_EXPORT void *SUBHOOK_API subhook_read_destination(void *src) { +SUBHOOK_EXPORT void *SUBHOOK_API subhook_read_dst(void *src) { if (*(unsigned char*)src == 0xE9) return (void *)(*(int *)((int)src + 1) + (int)src + SUBHOOK_JUMP_SIZE); |