Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/minhook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorberserkovich <berserkovich@gmail.com>2016-03-29 12:46:51 +0300
committerberserkovich <berserkovich@gmail.com>2016-03-29 12:46:51 +0300
commit9411e40defabbaeb60ff3e9bfeae0dd513ca1d0f (patch)
treee05734da411b59b3ade2ae91d1093ed693f1e8a1
parentf0b7ccd80dc01138220ce2f3ea79d3ee7d5c7f52 (diff)
Make bitfield int values explicitly unsigned
Since bitfiled int values are signed in Visual Studio bitfield members of type BOOL x : 1 don't work as expected in explicit comparison with TRUE
-rw-r--r--src/hook.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hook.c b/src/hook.c
index 99591f4..b21b882 100644
--- a/src/hook.c
+++ b/src/hook.c
@@ -67,9 +67,9 @@ typedef struct _HOOK_ENTRY
LPVOID pTrampoline; // Address of the trampoline function.
UINT8 backup[8]; // Original prologue of the target function.
- BOOL patchAbove : 1; // Uses the hot patch area.
- BOOL isEnabled : 1; // Enabled.
- BOOL queueEnable : 1; // Queued for enabling/disabling when != isEnabled.
+ UINT8 patchAbove : 1; // Uses the hot patch area.
+ UINT8 isEnabled : 1; // Enabled.
+ UINT8 queueEnable : 1; // Queued for enabling/disabling when != isEnabled.
UINT nIP : 4; // Count of the instruction boundaries.
UINT8 oldIPs[8]; // Instruction boundaries of the target function.