From 18bf17e828c8b4d866ef3fe595034e304c109e50 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 4 Dec 2008 12:14:58 +0100 Subject: [PATCH] quartz: Use FIELD_OFFSET instead of casting a pointer to int. --- dlls/quartz/memallocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c index ae2545914e8..58c9b6c0810 100644 --- a/dlls/quartz/memallocator.c +++ b/dlls/quartz/memallocator.c @@ -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)