[PATCH 2/5] d3dxof: Do not expect a separator when there is no element

Christian Costa titan.costa at wanadoo.fr
Mon Feb 1 01:18:30 CST 2010


---

 dlls/d3dxof/parsing.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index ac3d4bd..c2ffdff 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -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))


More information about the wine-patches mailing list