Paul Gofman : d3dxof: Use stricmp() instead of _strnicmp(..., -1).
Alexandre Julliard
julliard at winehq.org
Fri Mar 27 16:14:38 CDT 2020
Module: wine
Branch: master
Commit: 4f2f95195db56701eecedb39ad210e1eb4ceeb0a
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4f2f95195db56701eecedb39ad210e1eb4ceeb0a
Author: Paul Gofman <gofmanp at gmail.com>
Date: Fri Mar 27 13:14:21 2020 +0300
d3dxof: Use stricmp() instead of _strnicmp(..., -1).
Signed-off-by: Paul Gofman <gofmanp at gmail.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dxof/parsing.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3dxof/parsing.c b/dlls/d3dxof/parsing.c
index 7d31627b9c..e29d17810d 100644
--- a/dlls/d3dxof/parsing.c
+++ b/dlls/d3dxof/parsing.c
@@ -971,7 +971,7 @@ static BOOL parse_template_members_list(parse_buffer * buf)
cur_member->idx_template = 1;
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;
cur_member->idx_template++;
}
@@ -1175,7 +1175,7 @@ static BOOL parse_object_members_list(parse_buffer * buf)
/* To do template lookup */
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];
break;
@@ -1391,7 +1391,7 @@ BOOL parse_object(parse_buffer * buf)
/* To do template lookup */
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];
memcpy(&buf->pxo->type, &buf->pdxf->xtemplates[i].class_id, 16);
More information about the wine-cvs
mailing list