d3dxof: Use stricmp() instead of _strnicmp(..., -1).
Signed-off-by: Paul Gofman <gofmanp@gmail.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
aab980a162
commit
4f2f95195d
|
@ -971,7 +971,7 @@ static BOOL parse_template_members_list(parse_buffer * buf)
|
||||||
cur_member->idx_template = 1;
|
cur_member->idx_template = 1;
|
||||||
while (cur_member->idx_template < buf->pdxf->nb_xtemplates)
|
while (cur_member->idx_template < buf->pdxf->nb_xtemplates)
|
||||||
{
|
{
|
||||||
if (!_strnicmp((char*)buf->value, buf->pdxf->xtemplates[cur_member->idx_template].name, -1))
|
if (!stricmp((char*)buf->value, buf->pdxf->xtemplates[cur_member->idx_template].name))
|
||||||
break;
|
break;
|
||||||
cur_member->idx_template++;
|
cur_member->idx_template++;
|
||||||
}
|
}
|
||||||
|
@ -1175,7 +1175,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
|
||||||
/* To do template lookup */
|
/* To do template lookup */
|
||||||
for (j = 0; j < buf->pdxf->nb_xtemplates; j++)
|
for (j = 0; j < buf->pdxf->nb_xtemplates; j++)
|
||||||
{
|
{
|
||||||
if (!_strnicmp(buf->pdxf->xtemplates[pt->members[i].idx_template].name, buf->pdxf->xtemplates[j].name, -1))
|
if (!stricmp(buf->pdxf->xtemplates[pt->members[i].idx_template].name, buf->pdxf->xtemplates[j].name))
|
||||||
{
|
{
|
||||||
buf->pxt[buf->level] = &buf->pdxf->xtemplates[j];
|
buf->pxt[buf->level] = &buf->pdxf->xtemplates[j];
|
||||||
break;
|
break;
|
||||||
|
@ -1391,7 +1391,7 @@ BOOL parse_object(parse_buffer * buf)
|
||||||
/* To do template lookup */
|
/* To do template lookup */
|
||||||
for (i = 0; i < buf->pdxf->nb_xtemplates; i++)
|
for (i = 0; i < buf->pdxf->nb_xtemplates; i++)
|
||||||
{
|
{
|
||||||
if (!_strnicmp((char*)buf->value, buf->pdxf->xtemplates[i].name, -1))
|
if (!stricmp((char*)buf->value, buf->pdxf->xtemplates[i].name))
|
||||||
{
|
{
|
||||||
buf->pxt[buf->level] = &buf->pdxf->xtemplates[i];
|
buf->pxt[buf->level] = &buf->pdxf->xtemplates[i];
|
||||||
memcpy(&buf->pxo->type, &buf->pdxf->xtemplates[i].class_id, 16);
|
memcpy(&buf->pxo->type, &buf->pdxf->xtemplates[i].class_id, 16);
|
||||||
|
|
Loading…
Reference in New Issue