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:
Michael Stefaniuc 2016-09-19 10:14:47 +02:00 committed by Alexandre Julliard
parent a14674aa36
commit fc1ae4fc9e
1 changed files with 1 additions and 1 deletions

View File

@ -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)