winhttp: 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:
parent
db2f338bcc
commit
4104da841d
|
@ -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++;
|
||||
|
|
Loading…
Reference in New Issue