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
690d1121
Commit
690d1121
authored
Jan 05, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Use ~0u instead of ~0ul for DWORD values.
parent
5eb2753a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
request.c
dlls/winhttp/request.c
+6
-6
No files found.
dlls/winhttp/request.c
View file @
690d1121
...
...
@@ -410,7 +410,7 @@ BOOL add_request_headers( request_t *request, LPCWSTR headers, DWORD len, DWORD
WCHAR
*
buffer
,
*
p
,
*
q
;
header_t
*
header
;
if
(
len
==
~
0
UL
)
len
=
strlenW
(
headers
);
if
(
len
==
~
0
u
)
len
=
strlenW
(
headers
);
if
(
!
(
buffer
=
heap_alloc
(
(
len
+
1
)
*
sizeof
(
WCHAR
)
)))
return
FALSE
;
strcpyW
(
buffer
,
headers
);
...
...
@@ -1062,7 +1062,7 @@ static BOOL handle_redirect( request_t *request )
memset
(
&
uc
,
0
,
sizeof
(
uc
)
);
uc
.
dwStructSize
=
sizeof
(
uc
);
uc
.
dwSchemeLength
=
uc
.
dwHostNameLength
=
uc
.
dwUrlPathLength
=
uc
.
dwExtraInfoLength
=
~
0
UL
;
uc
.
dwSchemeLength
=
uc
.
dwHostNameLength
=
uc
.
dwUrlPathLength
=
uc
.
dwExtraInfoLength
=
~
0
u
;
if
(
!
WinHttpCrackUrl
(
location
,
size
/
sizeof
(
WCHAR
),
0
,
&
uc
))
/* assume relative redirect */
{
...
...
@@ -1184,7 +1184,7 @@ static BOOL receive_data_chunked( request_t *request, void *buffer, DWORD size,
{
if
(
*
read
==
size
)
break
;
if
(
request
->
content_length
==
~
0
UL
)
/* new chunk */
if
(
request
->
content_length
==
~
0
u
)
/* new chunk */
{
buflen
=
sizeof
(
reply
);
if
(
!
netconn_get_next_line
(
&
request
->
netconn
,
reply
,
&
buflen
))
break
;
...
...
@@ -1218,7 +1218,7 @@ static BOOL receive_data_chunked( request_t *request, void *buffer, DWORD size,
if
(
request
->
content_read
==
request
->
content_length
)
/* chunk complete */
{
request
->
content_read
=
0
;
request
->
content_length
=
~
0
UL
;
request
->
content_length
=
~
0
u
;
buflen
=
sizeof
(
reply
);
if
(
!
netconn_get_next_line
(
&
request
->
netconn
,
reply
,
&
buflen
))
...
...
@@ -1249,7 +1249,7 @@ static void finished_reading( request_t *request )
else
if
(
!
strcmpW
(
request
->
version
,
http1_0
))
close
=
TRUE
;
if
(
close
)
close_connection
(
request
);
request
->
content_length
=
~
0
UL
;
request
->
content_length
=
~
0
u
;
request
->
content_read
=
0
;
}
...
...
@@ -1331,7 +1331,7 @@ static BOOL receive_response( request_t *request, BOOL async )
size
=
sizeof
(
DWORD
);
query
=
WINHTTP_QUERY_CONTENT_LENGTH
|
WINHTTP_QUERY_FLAG_NUMBER
;
if
(
!
query_headers
(
request
,
query
,
NULL
,
&
request
->
content_length
,
&
size
,
NULL
))
request
->
content_length
=
~
0
UL
;
request
->
content_length
=
~
0
u
;
if
(
!
(
request
->
hdr
.
disable_flags
&
WINHTTP_DISABLE_COOKIES
))
record_cookies
(
request
);
...
...
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