Commit 649c982e authored by Amine Khaldi's avatar Amine Khaldi Committed by Alexandre Julliard

include: Define CONTAINING_RECORD using the standard offsetof.

parent e3dd01a2
......@@ -749,7 +749,7 @@ typedef struct _MEMORY_BASIC_INFORMATION
#define FIELD_OFFSET(type, field) ((LONG)offsetof(type, field))
#define CONTAINING_RECORD(address, type, field) \
((type *)((PCHAR)(address) - (PCHAR)(&((type *)0)->field)))
((type *)((PCHAR)(address) - offsetof(type, field)))
/* Types */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment