d3dxof: Avoid undefined behavior in parse_object_parts.

Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Thomas Faber 2015-11-22 21:37:20 +01:00 committed by Alexandre Julliard
parent b22d4e4588
commit 73eff6652a

View file

@ -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++;