Commit fc1ae4fc authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

jscript: Use CONTAINING_RECORD() to get from a field to a struct.

parent a14674aa
...@@ -36,7 +36,7 @@ static const WCHAR uboundW[] = {'u','b','o','u','n','d',0}; ...@@ -36,7 +36,7 @@ static const WCHAR uboundW[] = {'u','b','o','u','n','d',0};
static inline VBArrayInstance *vbarray_from_vdisp(vdisp_t *vdisp) 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) static inline VBArrayInstance *vbarray_this(vdisp_t *jsthis)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment