Commit 3b30fd9d authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dxof: Increase max objects and check limit.

parent ba11e60e
......@@ -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
......
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