Author: tfaber
Date: Thu Nov 26 21:54:44 2015
New Revision: 70117
URL:
http://svn.reactos.org/svn/reactos?rev=70117&view=rev
Log:
[D3DXOF]
- Avoid undefined behavior in parse_object_parts. Fixes 3D app startup on MSVC builds.
CORE-10590 #resolve
Modified:
trunk/reactos/dll/directx/wine/d3dxof/parsing.c
Modified: trunk/reactos/dll/directx/wine/d3dxof/parsing.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/d3dxof/pa…
==============================================================================
--- trunk/reactos/dll/directx/wine/d3dxof/parsing.c [iso-8859-1] (original)
+++ trunk/reactos/dll/directx/wine/d3dxof/parsing.c [iso-8859-1] Thu Nov 26 21:54:44 2015
@@ -1337,7 +1337,8 @@
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++;