diff options
author | berserkovich <berserkovich@gmail.com> | 2016-03-29 12:46:51 +0300 |
---|---|---|
committer | berserkovich <berserkovich@gmail.com> | 2016-03-29 12:46:51 +0300 |
commit | 9411e40defabbaeb60ff3e9bfeae0dd513ca1d0f (patch) | |
tree | e05734da411b59b3ade2ae91d1093ed693f1e8a1 | |
parent | f0b7ccd80dc01138220ce2f3ea79d3ee7d5c7f52 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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. |