Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
4104da84
Commit
4104da84
authored
Mar 29, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Don't use strcasecmp.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
db2f338b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
session.c
dlls/winhttp/session.c
+3
-2
No files found.
dlls/winhttp/session.c
View file @
4104da84
...
...
@@ -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
&&
!
strncase
cmp
(
p
,
"PROXY"
,
sizeof
(
"PROXY"
)
-
1
))
if
(
len
>=
5
&&
!
_strni
cmp
(
p
,
"PROXY"
,
sizeof
(
"PROXY"
)
-
1
))
{
p
+=
5
;
while
(
*
p
==
' '
)
p
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment