d3dxof: Increase max objects and check limit.

This commit is contained in:
Christian Costa 2008-11-11 12:39:46 +01:00 committed by Alexandre Julliard
parent ba11e60e8b
commit 3b30fd9d3a
2 changed files with 7 additions and 1 deletions

View file

@ -2077,6 +2077,12 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE
TRACE("(%p/%p)->(%p)\n", This, iface, ppDataObj);
if (This->nb_xobjects >= MAX_OBJECTS)
{
ERR("Too many objects\n");
return DXFILEERR_NOMOREOBJECTS;
}
if (!This->buf.rem_bytes)
return DXFILEERR_NOMOREOBJECTS;

View file

@ -38,7 +38,7 @@
#define MAX_MEMBERS 50
#define MAX_CHILDS 20
#define MAX_TEMPLATES 200
#define MAX_OBJECTS 200
#define MAX_OBJECTS 500
#define MAX_SUBOBJECTS 120
#define MAX_STRINGS_BUFFER 200