Module: wine Branch: master Commit: 73eff6652ac9671522a07155a97104f36ca7f8da URL: http://source.winehq.org/git/wine.git/?a=commit;h=73eff6652ac9671522a07155a9...
Author: Thomas Faber thomas.faber@reactos.org Date: Sun Nov 22 21:37:20 2015 +0100
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
---
dlls/d3dxof/parsing.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c index 769e815..54566b0 100644 --- a/dlls/d3dxof/parsing.c +++ b/dlls/d3dxof/parsing.c @@ -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++;