Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a9983e6c
Commit
a9983e6c
authored
Mar 05, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Avoid signed-unsigned integer comparisons.
parent
402b1001
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
net.c
dlls/winhttp/net.c
+1
-1
request.c
dlls/winhttp/request.c
+2
-2
session.c
dlls/winhttp/session.c
+2
-2
No files found.
dlls/winhttp/net.c
View file @
a9983e6c
...
...
@@ -568,7 +568,7 @@ static BOOL read_ssl_chunk(netconn_t *conn, void *buf, SIZE_T buf_size, SIZE_T *
SecBuffer
bufs
[
4
];
SecBufferDesc
buf_desc
=
{
SECBUFFER_VERSION
,
sizeof
(
bufs
)
/
sizeof
(
*
bufs
),
bufs
};
SSIZE_T
size
,
buf_len
;
int
i
;
unsigned
int
i
;
SECURITY_STATUS
res
;
assert
(
conn
->
extra_len
<
ssl_buf_size
);
...
...
dlls/winhttp/request.c
View file @
a9983e6c
...
...
@@ -2935,9 +2935,9 @@ static HRESULT request_send( struct winhttp_request *request )
VariantInit
(
&
data
);
if
(
V_VT
(
&
request
->
data
)
==
VT_BSTR
)
{
UINT
i
,
cp
=
CP_ACP
;
UINT
cp
=
CP_ACP
;
const
WCHAR
*
str
=
V_BSTR
(
&
request
->
data
);
int
len
=
strlenW
(
str
);
int
i
,
len
=
strlenW
(
str
);
for
(
i
=
0
;
i
<
len
;
i
++
)
{
...
...
dlls/winhttp/session.c
View file @
a9983e6c
...
...
@@ -878,7 +878,7 @@ static const object_vtbl_t request_vtbl =
static
BOOL
store_accept_types
(
request_t
*
request
,
const
WCHAR
**
accept_types
)
{
const
WCHAR
**
types
=
accept_types
;
int
i
;
DWORD
i
;
if
(
!
types
)
return
TRUE
;
while
(
*
types
)
...
...
@@ -897,7 +897,7 @@ static BOOL store_accept_types( request_t *request, const WCHAR **accept_types )
{
if
(
!
(
request
->
accept_types
[
i
]
=
strdupW
(
*
types
)))
{
for
(
;
i
>=
0
;
i
--
)
heap_free
(
request
->
accept_types
[
i
]
);
for
(
;
i
>
0
;
--
i
)
heap_free
(
request
->
accept_types
[
i
-
1
]
);
heap_free
(
request
->
accept_types
);
request
->
accept_types
=
NULL
;
request
->
num_accept_types
=
0
;
...
...
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