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
52388167
Commit
52388167
authored
Jan 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Use ~0u instead of ~0ul for DWORD values.
parent
97f4bfa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
http.c
dlls/wininet/tests/http.c
+6
-6
No files found.
dlls/wininet/tests/http.c
View file @
52388167
...
...
@@ -1666,7 +1666,7 @@ static void test_header_handling_order(int port)
request
=
HttpOpenRequest
(
connect
,
NULL
,
"/test3"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
,
0
);
ok
(
request
!=
NULL
,
"HttpOpenRequest failed
\n
"
);
ret
=
HttpAddRequestHeaders
(
request
,
authorization
,
~
0
UL
,
HTTP_ADDREQ_FLAG_ADD
);
ret
=
HttpAddRequestHeaders
(
request
,
authorization
,
~
0
u
,
HTTP_ADDREQ_FLAG_ADD
);
ok
(
ret
,
"HttpAddRequestHeaders failed
\n
"
);
ret
=
HttpSendRequest
(
request
,
NULL
,
0
,
NULL
,
0
);
...
...
@@ -1683,7 +1683,7 @@ static void test_header_handling_order(int port)
request
=
HttpOpenRequest
(
connect
,
NULL
,
"/test4"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
,
0
);
ok
(
request
!=
NULL
,
"HttpOpenRequest failed
\n
"
);
ret
=
HttpSendRequest
(
request
,
connection
,
~
0
UL
,
NULL
,
0
);
ret
=
HttpSendRequest
(
request
,
connection
,
~
0
u
,
NULL
,
0
);
ok
(
ret
,
"HttpSendRequest failed
\n
"
);
status
=
0
;
...
...
@@ -1697,10 +1697,10 @@ static void test_header_handling_order(int port)
request
=
HttpOpenRequest
(
connect
,
"POST"
,
"/test7"
,
NULL
,
NULL
,
types
,
INTERNET_FLAG_KEEP_CONNECTION
,
0
);
ok
(
request
!=
NULL
,
"HttpOpenRequest failed
\n
"
);
ret
=
HttpAddRequestHeaders
(
request
,
"Content-Length: 100
\r\n
"
,
~
0
UL
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
ret
=
HttpAddRequestHeaders
(
request
,
"Content-Length: 100
\r\n
"
,
~
0
u
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
ok
(
ret
,
"HttpAddRequestHeaders failed
\n
"
);
ret
=
HttpSendRequest
(
request
,
connection
,
~
0
UL
,
NULL
,
0
);
ret
=
HttpSendRequest
(
request
,
connection
,
~
0
u
,
NULL
,
0
);
ok
(
ret
,
"HttpSendRequest failed
\n
"
);
status
=
0
;
...
...
@@ -2055,7 +2055,7 @@ static void test_user_agent_header(void)
ok
(
!
ret
,
"HttpQueryInfo succeeded
\n
"
);
ok
(
err
==
ERROR_HTTP_HEADER_NOT_FOUND
,
"expected ERROR_HTTP_HEADER_NOT_FOUND, got %u
\n
"
,
err
);
ret
=
HttpAddRequestHeaders
(
req
,
"User-Agent: Gizmo Project
\r\n
"
,
~
0
UL
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
ret
=
HttpAddRequestHeaders
(
req
,
"User-Agent: Gizmo Project
\r\n
"
,
~
0
u
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
ok
(
ret
,
"HttpAddRequestHeaders succeeded
\n
"
);
size
=
sizeof
(
buffer
);
...
...
@@ -2075,7 +2075,7 @@ static void test_user_agent_header(void)
ok
(
!
ret
,
"HttpQueryInfo succeeded
\n
"
);
ok
(
err
==
ERROR_HTTP_HEADER_NOT_FOUND
,
"expected ERROR_HTTP_HEADER_NOT_FOUND, got %u
\n
"
,
err
);
ret
=
HttpAddRequestHeaders
(
req
,
"Accept: audio/*, image/*, text/*
\r\n
User-Agent: Gizmo Project
\r\n
"
,
~
0
UL
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
ret
=
HttpAddRequestHeaders
(
req
,
"Accept: audio/*, image/*, text/*
\r\n
User-Agent: Gizmo Project
\r\n
"
,
~
0
u
,
HTTP_ADDREQ_FLAG_ADD_IF_NEW
);
ok
(
ret
,
"HttpAddRequestHeaders failed
\n
"
);
buffer
[
0
]
=
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