From: Thomas Faber Date: Thu, 26 Nov 2015 21:54:44 +0000 (+0000) Subject: [D3DXOF] X-Git-Tag: ReactOS-0.4.0~59^2~204 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fdb6a36956a34e17b91a9feaef347c4e2db0ed0a [D3DXOF] - Avoid undefined behavior in parse_object_parts. Fixes 3D app startup on MSVC builds. CORE-10590 #resolve svn path=/trunk/; revision=70117 --- diff --git a/reactos/dll/directx/wine/d3dxof/parsing.c b/reactos/dll/directx/wine/d3dxof/parsing.c index 564fe22d6d1..91259c01ebf 100644 --- a/reactos/dll/directx/wine/d3dxof/parsing.c +++ b/reactos/dll/directx/wine/d3dxof/parsing.c @@ -1337,7 +1337,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++;