mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-21 11:47:10 +00:00
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 "ws2tcpip.h"
|
||||||
#include "winhttp.h"
|
#include "winhttp.h"
|
||||||
#include "winreg.h"
|
#include "winreg.h"
|
||||||
|
#include "winternl.h"
|
||||||
#define COBJMACROS
|
#define COBJMACROS
|
||||||
#include "ole2.h"
|
#include "ole2.h"
|
||||||
#include "dispex.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 );
|
int len_domain = strlen( domain ), len_suffix = strlen( suffix );
|
||||||
|
|
||||||
if (len_suffix > len_domain) return FALSE;
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1737,7 +1738,7 @@ static BOOL parse_script_result( const char *result, WINHTTP_PROXY_INFO *info )
|
||||||
p = result;
|
p = result;
|
||||||
while (*p == ' ') p++;
|
while (*p == ' ') p++;
|
||||||
len = strlen( p );
|
len = strlen( p );
|
||||||
if (len >= 5 && !strncasecmp( p, "PROXY", sizeof("PROXY") - 1 ))
|
if (len >= 5 && !_strnicmp( p, "PROXY", sizeof("PROXY") - 1 ))
|
||||||
{
|
{
|
||||||
p += 5;
|
p += 5;
|
||||||
while (*p == ' ') p++;
|
while (*p == ' ') p++;
|
||||||
|
|
Loading…
Reference in a new issue