d3dxof: Allow omission of comma which separates array elements.

This commit is contained in:
Christian Costa 2008-10-07 22:52:12 +02:00 committed by Alexandre Julliard
parent b67e875eed
commit b12be1ce78
1 changed files with 11 additions and 2 deletions

View File

@ -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)