From 999ee276cfd7420abaf7566932b591677aff184f Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Thu, 2 Feb 2023 00:22:24 +0100 Subject: Fixed bugs --- src/StormCommon.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/StormCommon.h') 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) -- cgit v1.2.3