d3dxof: Store number of subojects for all top level objects.

This commit is contained in:
Christian Costa 2008-10-07 22:53:38 +02:00 committed by Alexandre Julliard
parent ded68e8a4f
commit 9d64f82554
2 changed files with 3 additions and 0 deletions

View File

@ -1989,6 +1989,8 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
return DXFILEERR_PARSEERROR;
}
This->buf.pxo->nb_subobjects = This->buf.cur_subobject;
object->pobj = This->buf.pxo;
object->cur_enum_object = 0;
object->level = 0;

View File

@ -76,6 +76,7 @@ struct _xobject {
ULONG nb_members;
xobject_member members[MAX_MEMBERS];
ULONG nb_childs;
ULONG nb_subobjects;
struct _xobject * childs[MAX_CHILDS];
};