Christian Costa : d3dxof: Template names are case insensitive.
Alexandre Julliard
julliard at winehq.org
Mon Dec 29 08:47:35 CST 2008
Module: wine
Branch: master
Commit: 0fea04afbf8556e7164292b800e80adbb2e5db7c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0fea04afbf8556e7164292b800e80adbb2e5db7c
Author: Christian Costa <titan.costa at wanadoo.fr>
Date: Sun Dec 28 11:27:29 2008 +0100
d3dxof: Template names are case insensitive.
---
dlls/d3dxof/d3dxof.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/d3dxof/d3dxof.c b/dlls/d3dxof/d3dxof.c
index 493735b..1913c68 100644
--- a/dlls/d3dxof/d3dxof.c
+++ b/dlls/d3dxof/d3dxof.c
@@ -1088,13 +1088,13 @@ static BOOL parse_template_members_list(parse_buffer * buf)
cur_member->idx_template = 0;
while (cur_member->idx_template < buf->pdxf->nb_xtemplates)
{
- if (!strcmp((char*)buf->value, buf->pdxf->xtemplates[cur_member->idx_template].name))
+ if (!strcasecmp((char*)buf->value, buf->pdxf->xtemplates[cur_member->idx_template].name))
break;
cur_member->idx_template++;
}
if (cur_member->idx_template == buf->pdxf->nb_xtemplates)
{
- TRACE("Reference to a nonexistent template '%s'\n", (char*)buf->value);
+ ERR("Reference to a nonexistent template '%s'\n", (char*)buf->value);
return FALSE;
}
}
@@ -1977,7 +1977,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
/* To do template lookup */
for (j = 0; j < buf->pdxf->nb_xtemplates; j++)
{
- if (!strcmp(buf->pdxf->xtemplates[pt->members[i].idx_template].name, buf->pdxf->xtemplates[j].name))
+ if (!strcasecmp(buf->pdxf->xtemplates[pt->members[i].idx_template].name, buf->pdxf->xtemplates[j].name))
{
buf->pxt[buf->level] = &buf->pdxf->xtemplates[j];
break;
@@ -1985,7 +1985,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
}
if (j == buf->pdxf->nb_xtemplates)
{
- FIXME("Unknown template %s\n", (char*)buf->value);
+ ERR("Unknown template %s\n", (char*)buf->value);
buf->level--;
return FALSE;
}
@@ -2186,7 +2186,7 @@ static BOOL parse_object(parse_buffer * buf)
/* To do template lookup */
for (i = 0; i < buf->pdxf->nb_xtemplates; i++)
{
- if (!strcmp((char*)buf->value, buf->pdxf->xtemplates[i].name))
+ if (!strcasecmp((char*)buf->value, buf->pdxf->xtemplates[i].name))
{
buf->pxt[buf->level] = &buf->pdxf->xtemplates[i];
memcpy(&buf->pxo->type, &buf->pdxf->xtemplates[i].class_id, 16);
@@ -2195,7 +2195,7 @@ static BOOL parse_object(parse_buffer * buf)
}
if (i == buf->pdxf->nb_xtemplates)
{
- FIXME("Unknown template %s\n", (char*)buf->value);
+ ERR("Unknown template %s\n", (char*)buf->value);
return FALSE;
}
More information about the wine-cvs
mailing list