Module: wine Branch: master Commit: b12be1ce781e9c203f3bbb1fd79d691ac448351a URL: http://source.winehq.org/git/wine.git/?a=commit;h=b12be1ce781e9c203f3bbb1fd7...
Author: Christian Costa titan.costa@wanadoo.fr Date: Tue Oct 7 22:52:12 2008 +0200
d3dxof: Allow omission of comma which separates array elements.
---
dlls/d3dxof/d3dxof.c | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c index a4801f5..553dbf9 100644 --- a/dlls/d3dxof/d3dxof.c +++ b/dlls/d3dxof/d3dxof.c @@ -1703,8 +1703,17 @@ static BOOL parse_object_members_list(parse_buffer * buf) { if (k) { - if (get_TOKEN(buf) != TOKEN_COMMA) - return FALSE; + token = check_TOKEN(buf); + if (token == TOKEN_COMMA) + { + get_TOKEN(buf); + } + else + { + /* Allow comma omission */ + if (!((token == TOKEN_FLOAT))) + return FALSE; + } }
if (pt->members[i].type == TOKEN_NAME)