Christian Costa : d3dxof: Do not expect a separator when there is no element.
Module: wine Branch: master Commit: 4d79c2630676a461b447bb4993ed03212555f9c3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4d79c2630676a461b447bb4993... Author: Christian Costa <titan.costa(a)wanadoo.fr> Date: Mon Feb 1 08:18:30 2010 +0100 d3dxof: Do not expect a separator when there is no element. --- dlls/d3dxof/parsing.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c index ac3d4bd..c2ffdff 100644 --- a/dlls/d3dxof/parsing.c +++ b/dlls/d3dxof/parsing.c @@ -1161,7 +1161,7 @@ static BOOL parse_object_members_list(parse_buffer * buf) } } - if (buf->txt && (check_TOKEN(buf) != TOKEN_CBRACE)) + if (nb_elems && buf->txt && (check_TOKEN(buf) != TOKEN_CBRACE)) { token = get_TOKEN(buf); if ((token != TOKEN_SEMICOLON) && (token != TOKEN_COMMA))
participants (1)
-
Alexandre Julliard