Christian Costa : d3dxof: Avoid dealing with remaining byte until next token or eof, check_TOKEN handles them fine.
Alexandre Julliard
julliard at winehq.org
Tue Apr 30 12:51:27 CDT 2013
Module: wine
Branch: master
Commit: 37d037749d9c8954a41818d03b9f073336021f23
URL: http://source.winehq.org/git/wine.git/?a=commit;h=37d037749d9c8954a41818d03b9f073336021f23
Author: Christian Costa <titan.costa at gmail.com>
Date: Mon Apr 29 21:42:46 2013 +0200
d3dxof: Avoid dealing with remaining byte until next token or eof, check_TOKEN handles them fine.
---
dlls/d3dxof/parsing.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index 546166a..1c624d3 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -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))
{
More information about the wine-cvs
mailing list