Alexandre Julliard : quartz: Use FIELD_OFFSET instead of casting a pointer to int.
Alexandre Julliard
julliard at winehq.org
Thu Dec 4 09:02:23 CST 2008
Module: wine
Branch: master
Commit: 18bf17e828c8b4d866ef3fe595034e304c109e50
URL: http://source.winehq.org/git/wine.git/?a=commit;h=18bf17e828c8b4d866ef3fe595034e304c109e50
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Dec 4 12:14:58 2008 +0100
quartz: Use FIELD_OFFSET instead of casting a pointer to int.
---
dlls/quartz/memallocator.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/quartz/memallocator.c b/dlls/quartz/memallocator.c
index ae25459..58c9b6c 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)
More information about the wine-cvs
mailing list