include: Use offsetof() instead of open coding it.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5b4f8a385b
commit
fd578822dd
|
@ -429,7 +429,7 @@ typedef struct _CRYPT_PROVUI_FUNCS {
|
|||
|
||||
#include <poppack.h>
|
||||
|
||||
#define WVT_OFFSETOF(t,f) ((ULONG)((ULONG_PTR)(&((t*)0)->f)))
|
||||
#define WVT_OFFSETOF(t,f) ((ULONG)(offsetof(t, f)))
|
||||
#define WVT_ISINSTRUCT(t,s,f) (WVT_OFFSETOF(t,f) + sizeof(((t*)0)->f) <= (s))
|
||||
#define WVT_IS_CBSTRUCT_GT_MEMBEROFFSET(t,s,f) WVT_ISINSTRUCT(t,s,f)
|
||||
|
||||
|
|
Loading…
Reference in New Issue