ws2_32: Don't use strcasecmp.

Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Piotr Caban 2019-04-03 18:20:39 +02:00 committed by Alexandre Julliard
parent 57a8c4dbe8
commit 17779b44d1
1 changed files with 1 additions and 1 deletions

View File

@ -6509,7 +6509,7 @@ struct WS_protoent* WINAPI WS_getprotobyname(const char* name)
unsigned int i; unsigned int i;
for (i = 0; i < ARRAY_SIZE(protocols); i++) for (i = 0; i < ARRAY_SIZE(protocols); i++)
{ {
if (strcasecmp( protocols[i].names[0], name )) continue; if (_strnicmp( protocols[i].names[0], name, -1 )) continue;
retval = WS_create_pe( protocols[i].names[0], (char **)protocols[i].names + 1, retval = WS_create_pe( protocols[i].names[0], (char **)protocols[i].names + 1,
protocols[i].prot ); protocols[i].prot );
break; break;