comctl32: Fix the TAB_ITEM_SIZE macro.

This commit is contained in:
Thomas Weidenmueller 2007-01-27 14:27:38 +01:00 committed by Alexandre Julliard
parent 8ec3423e76
commit 2c620c8269
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ typedef struct
} TAB_ITEM;
/* The size of a tab item depends on how much extra data is requested */
#define TAB_ITEM_SIZE(infoPtr) (sizeof(TAB_ITEM) - sizeof(BYTE) + infoPtr->cbInfo)
#define TAB_ITEM_SIZE(infoPtr) (FIELD_OFFSET(TAB_ITEM, extra[(infoPtr)->cbInfo]))
typedef struct
{