include: Define CONTAINING_RECORD using the standard offsetof.

oldstable
Amine Khaldi 2012-12-10 23:15:36 +01:00 committed by Alexandre Julliard
parent e3dd01a264
commit 649c982e60
1 changed files with 1 additions and 1 deletions

View File

@ -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 */