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
dc9f5bec
Commit
dc9f5bec
authored
Aug 16, 2012
by
Bruno Jesus
Committed by
Alexandre Julliard
Aug 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet/tests: Add invalid index test for HttpQueryInfo.
parent
d402231e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
http.c
dlls/wininet/tests/http.c
+8
-0
No files found.
dlls/wininet/tests/http.c
View file @
dc9f5bec
...
...
@@ -2614,6 +2614,14 @@ static void test_HttpQueryInfo(int port)
ok
(
ret
,
"HttpQueryInfo failed %u
\n
"
,
GetLastError
());
ok
(
index
==
0
,
"expected 0 got %u
\n
"
,
index
);
index
=
0xdeadbeef
;
/* invalid start index */
size
=
sizeof
(
buffer
);
ret
=
HttpQueryInfo
(
hr
,
HTTP_QUERY_RAW_HEADERS
,
buffer
,
&
size
,
&
index
);
todo_wine
ok
(
!
ret
,
"HttpQueryInfo should have failed
\n
"
);
todo_wine
ok
(
GetLastError
()
==
ERROR_HTTP_HEADER_NOT_FOUND
,
"Expected ERROR_HTTP_HEADER_NOT_FOUND, got %u
\n
"
,
GetLastError
());
index
=
0
;
size
=
sizeof
(
buffer
);
ret
=
HttpQueryInfo
(
hr
,
HTTP_QUERY_RAW_HEADERS_CRLF
,
buffer
,
&
size
,
&
index
);
ok
(
ret
,
"HttpQueryInfo failed %u
\n
"
,
GetLastError
());
...
...
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