Module: wine Branch: master Commit: 94ae7ab42ebdb8f4c520c6e4711889ff1310d51e URL: http://source.winehq.org/git/wine.git/?a=commit;h=94ae7ab42ebdb8f4c520c6e471...
Author: Christian Costa titan.costa@wanadoo.fr Date: Thu Oct 16 22:22:52 2008 +0200
d3dxof: Reference the right objects.
---
dlls/d3dxof/d3dxof.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index 8e9ef00..e92d181 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -1868,7 +1868,7 @@ _exit: return FALSE; } buf->pxo->childs[buf->pxo->nb_childs] = &buf->pxo_tab[buf->cur_subobject++]; - buf->pxo->childs[buf->pxo->nb_childs]->ptarget = &buf->pxo_globals[i*MAX_SUBOBJECTS]; + buf->pxo->childs[buf->pxo->nb_childs]->ptarget = &buf->pxo_globals[i*MAX_SUBOBJECTS+j]; buf->pxo->nb_childs++; } else if (check_TOKEN(buf) == TOKEN_NAME) @@ -1964,7 +1964,7 @@ static HRESULT WINAPI IDirectXFileEnumObjectImpl_GetNextDataObject(IDirectXFileE IDirectXFileDataImpl* object; HRESULT hr; LPBYTE pdata; - + TRACE("(%p/%p)->(%p)\n", This, iface, ppDataObj);
if (!This->buf.rem_bytes)