jscript: Use CONTAINING_RECORD() to get from a field to a struct.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a14674aa36
commit
fc1ae4fc9e
|
@ -36,7 +36,7 @@ static const WCHAR uboundW[] = {'u','b','o','u','n','d',0};
|
|||
|
||||
static inline VBArrayInstance *vbarray_from_vdisp(vdisp_t *vdisp)
|
||||
{
|
||||
return (VBArrayInstance*)vdisp->u.jsdisp;
|
||||
return CONTAINING_RECORD(vdisp->u.jsdisp, VBArrayInstance, dispex);
|
||||
}
|
||||
|
||||
static inline VBArrayInstance *vbarray_this(vdisp_t *jsthis)
|
||||
|
|
Loading…
Reference in New Issue