Module: wine
Branch: master
Commit: 4104da841dd28a324c0340a4f075949ad8286134
URL:
https://source.winehq.org/git/wine.git/?a=commit;h=4104da841dd28a324c0340a4…
Author: Piotr Caban <piotr(a)codeweavers.com>
Date: Fri Mar 29 16:34:17 2019 +0100
winhttp: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/winhttp/session.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index 64fa8bb..f4f7e41 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -36,6 +36,7 @@
#include "ws2tcpip.h"
#include "winhttp.h"
#include "winreg.h"
+#include "winternl.h"
#define COBJMACROS
#include "ole2.h"
#include "dispex.h"
@@ -1331,7 +1332,7 @@ static BOOL is_domain_suffix( const char *domain, const char *suffix
)
int len_domain = strlen( domain ), len_suffix = strlen( suffix );
if (len_suffix > len_domain) return FALSE;
- if (!strcasecmp( domain + len_domain - len_suffix, suffix )) return TRUE;
+ if (!_strnicmp( domain + len_domain - len_suffix, suffix, -1 )) return TRUE;
return FALSE;
}
@@ -1737,7 +1738,7 @@ static BOOL parse_script_result( const char *result,
WINHTTP_PROXY_INFO *info )
p = result;
while (*p == ' ') p++;
len = strlen( p );
- if (len >= 5 && !strncasecmp( p, "PROXY",
sizeof("PROXY") - 1 ))
+ if (len >= 5 && !_strnicmp( p, "PROXY",
sizeof("PROXY") - 1 ))
{
p += 5;
while (*p == ' ') p++;