Commit 73eff665 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

d3dxof: Avoid undefined behavior in parse_object_parts.

parent b22d4e45
......@@ -1349,7 +1349,8 @@ _exit:
return FALSE;
}
buf->pxo = buf->pxo->children[buf->pxo->nb_children] = &buf->pxo_tab[buf->pxo->root->nb_subobjects++];
buf->pxo = buf->pxo->children[buf->pxo->nb_children] = &buf->pxo_tab[buf->pxo->root->nb_subobjects];
pxo->root->nb_subobjects++;
TRACE("Enter optional %s\n", (char*)buf->value);
buf->level++;
......
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