aboutsummaryrefslogtreecommitdiff
path: root/src/StormCommon.h
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avast.com>2023-02-02 00:22:24 +0100
committerLadislav Zezula <ladislav.zezula@avast.com>2023-02-02 00:22:24 +0100
commit999ee276cfd7420abaf7566932b591677aff184f (patch)
tree438a470babc8dc50ce5d18cc38151165b6131e89 /src/StormCommon.h
parent50f811e59056488ebf153b86ea8cba1d339246e4 (diff)
Fixed bugs
Diffstat (limited to 'src/StormCommon.h')
-rw-r--r--src/StormCommon.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/StormCommon.h b/src/StormCommon.h
index 39f7524..74b687e 100644
--- a/src/StormCommon.h
+++ b/src/StormCommon.h
@@ -70,6 +70,9 @@
// Checks for data pointers aligned to 4-byte boundary
#define STORMLIB_DWORD_ALIGNED(ptr) (((size_t)(ptr) & 0x03) == 0)
+// Check for masked flags
+#define STORMLIB_TEST_FLAGS(dwFlags, dwMask, dwValue) ((dwFlags & (dwMask)) == (dwValue))
+
// Macro for building 64-bit file offset from two 32-bit
#define MAKE_OFFSET64(hi, lo) (((ULONGLONG)hi << 32) | (ULONGLONG)lo)