Module: wine Branch: master Commit: 39772f9749e8b73b0eff879099453d41b085d0cf URL: http://source.winehq.org/git/wine.git/?a=commit;h=39772f9749e8b73b0eff879099...
Author: Christian Costa titan.costa@wanadoo.fr Date: Wed Dec 30 22:06:18 2009 +0100
d3dxof: Enable referencing objects defined in current top-level object.
---
dlls/d3dxof/parsing.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c index ec962b0..f4fb3d2 100644 --- a/dlls/d3dxof/parsing.c +++ b/dlls/d3dxof/parsing.c @@ -1198,7 +1198,7 @@ static BOOL parse_object_parts(parse_buffer * buf, BOOL allow_optional) if (get_TOKEN(buf) != TOKEN_CBRACE) return FALSE; TRACE("Found optional reference %s\n", (char*)buf->value); - for (i = 0; i < buf->nb_pxo_globals; i++) + for (i = 0; i < (buf->nb_pxo_globals+1); i++) { for (j = 0; j < (buf->pxo_globals[i])[0].nb_subobjects; j++) { @@ -1207,7 +1207,7 @@ static BOOL parse_object_parts(parse_buffer * buf, BOOL allow_optional) } } _exit: - if (i == buf->nb_pxo_globals) + if (i == (buf->nb_pxo_globals+1)) { ERR("Reference to unknown object %s\n", (char*)buf->value); return FALSE;