quartz: Use FIELD_OFFSET instead of casting a pointer to int.

This commit is contained in:
Alexandre Julliard 2008-12-04 12:14:58 +01:00
parent 2e83689b77
commit 18bf17e828
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ typedef struct BaseMemAllocator
static const IMemAllocatorVtbl BaseMemAllocator_VTable;
static const IMediaSample2Vtbl StdMediaSample2_VTable;
#define AM_SAMPLE2_PROP_SIZE_WRITABLE (unsigned int)(&((AM_SAMPLE2_PROPERTIES *)0)->pbBuffer)
#define AM_SAMPLE2_PROP_SIZE_WRITABLE FIELD_OFFSET(AM_SAMPLE2_PROPERTIES, pbBuffer)
#define INVALID_MEDIA_TIME (((ULONGLONG)0x7fffffff << 32) | 0xffffffff)