From c955f038869eff08387b2d63f50322b76d69bccf Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Sun, 25 Sep 2011 23:33:28 +0200 Subject: [PATCH] ieframe: Don't open code CONTAINING_RECORD(). --- dlls/ieframe/intshcut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/ieframe/intshcut.c b/dlls/ieframe/intshcut.c index 846e133143a..17a13ec74ab 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 )