Michael Stefaniuc : ieframe: Don't open code CONTAINING_RECORD().
Alexandre Julliard
julliard at winehq.org
Mon Sep 26 16:15:08 CDT 2011
Module: wine
Branch: master
Commit: c955f038869eff08387b2d63f50322b76d69bccf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c955f038869eff08387b2d63f50322b76d69bccf
Author: Michael Stefaniuc <mstefani at 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 )
More information about the wine-cvs
mailing list