Commit 4d79c263 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dxof: Do not expect a separator when there is no element.

parent 65b7bdce
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment