Commit 37d03774 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3dxof: Avoid dealing with remaining byte until next token or eof, check_TOKEN handles them fine.

parent a506d0aa
......@@ -1114,11 +1114,6 @@ static BOOL parse_template(parse_buffer * buf)
return FALSE;
if (get_TOKEN(buf) != TOKEN_CBRACE)
return FALSE;
if (buf->txt)
{
/* Go to the next template */
go_to_next_definition(buf);
}
TRACE("%d - %s - %s\n", buf->pdxf->nb_xtemplates, buf->pdxf->xtemplates[buf->pdxf->nb_xtemplates].name, debugstr_guid(&buf->pdxf->xtemplates[buf->pdxf->nb_xtemplates].class_id));
buf->pdxf->nb_xtemplates++;
......@@ -1128,7 +1123,7 @@ static BOOL parse_template(parse_buffer * buf)
BOOL parse_templates(parse_buffer * buf)
{
while (buf->rem_bytes && (check_TOKEN(buf) == TOKEN_TEMPLATE))
while (check_TOKEN(buf) == TOKEN_TEMPLATE)
{
if (!parse_template(buf))
{
......
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