d3dxof: Increase max objects and check limit.
This commit is contained in:
parent
ba11e60e8b
commit
3b30fd9d3a
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue