Piotr Caban : ws2_32: Don't use strcasecmp.
Alexandre Julliard
julliard at winehq.org
Wed Apr 3 15:26:20 CDT 2019
Module: wine
Branch: master
Commit: 17779b44d10c3eff0a4b3b8b239da8a5966d07df
URL: https://source.winehq.org/git/wine.git/?a=commit;h=17779b44d10c3eff0a4b3b8b239da8a5966d07df
Author: Piotr Caban <piotr at codeweavers.com>
Date: Wed Apr 3 18:20:39 2019 +0200
ws2_32: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ws2_32/socket.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index a56e284..a302612 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -6509,7 +6509,7 @@ struct WS_protoent* WINAPI WS_getprotobyname(const char* name)
unsigned int 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,
protocols[i].prot );
break;
More information about the wine-cvs
mailing list