Module: wine Branch: master Commit: c955f038869eff08387b2d63f50322b76d69bccf URL: http://source.winehq.org/git/wine.git/?a=commit;h=c955f038869eff08387b2d63f5...
Author: Michael Stefaniuc mstefani@redhat.de Date: Sun Sep 25 23:33:28 2011 +0200
ieframe: Don't open code CONTAINING_RECORD().
---
dlls/ieframe/intshcut.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ieframe/intshcut.c b/dlls/ieframe/intshcut.c index 846e133..17a13ec 100644 --- a/dlls/ieframe/intshcut.c +++ b/dlls/ieframe/intshcut.c @@ -77,7 +77,7 @@ static inline InternetShortcut* impl_from_IPersistFile(IPersistFile *iface)
static inline InternetShortcut* impl_from_IPropertySetStorage(IPropertySetStorage *iface) { - return (InternetShortcut*)((char*)iface - FIELD_OFFSET(InternetShortcut, IPropertySetStorage_iface)); + return CONTAINING_RECORD(iface, InternetShortcut, IPropertySetStorage_iface); }
static BOOL run_winemenubuilder( const WCHAR *args )