aboutsummaryrefslogtreecommitdiff
path: root/subhook_private.h
diff options
context:
space:
mode:
authorZeex <zeex@rocketmail.com>2014-07-29 17:42:17 +0700
committerZeex <zeex@rocketmail.com>2014-07-29 17:42:34 +0700
commitd4cd4aa8f4b04da45ece74725cc23f48ee132b35 (patch)
treebe6102147c6d5a06544293c123e90d18b1e49bdd /subhook_private.h
parentdf95b921b9488ffbe24a1ab4f56825275e09077f (diff)
downloadsubhook-d4cd4aa8f4b04da45ece74725cc23f48ee132b35.zip
subhook-d4cd4aa8f4b04da45ece74725cc23f48ee132b35.tar.gz
subhook-d4cd4aa8f4b04da45ece74725cc23f48ee132b35.tar.bz2
Call subhook_unprotect() only on first install
Diffstat (limited to 'subhook_private.h')
-rw-r--r--subhook_private.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/subhook_private.h b/subhook_private.h
index c3de967..3c6c461 100644
--- a/subhook_private.h
+++ b/subhook_private.h
@@ -27,7 +27,8 @@
#define SUBHOOK_PRIVATE_H
struct subhook {
- int installed: 1;
+ int unlocked : 1;
+ int installed : 1;
void *src;
void *dst;
};