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
5cdfee81
Commit
5cdfee81
authored
Aug 15, 2007
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Aug 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: A small test for HttpQueryInfoA.
parent
3fa49f0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
http.c
dlls/wininet/tests/http.c
+7
-0
No files found.
dlls/wininet/tests/http.c
View file @
5cdfee81
...
...
@@ -990,6 +990,13 @@ static void HttpHeaders_test(void)
ok
(
HttpQueryInfo
(
hRequest
,
HTTP_QUERY_CUSTOM
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
buffer
,
&
len
,
&
index
)
==
0
,
"Second Index Should Not Exist
\n
"
);
index
=
0
;
len
=
5
;
/* could store the string but not the NULL terminator */
strcpy
(
buffer
,
"Warning"
);
ok
(
HttpQueryInfo
(
hRequest
,
HTTP_QUERY_CUSTOM
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
buffer
,
&
len
,
&
index
)
==
FALSE
,
"Query succeeded on a too small buffer
\n
"
);
ok
(
strcmp
(
buffer
,
"Warning"
)
==
0
,
"incorrect string was returned(%s)
\n
"
,
buffer
);
/* string not touched */
ok
(
len
==
6
,
"Invalid length (exp. 6, got %d)
\n
"
,
len
);
/* unlike success, the length includes the NULL-terminator */
/* a call with NULL will fail but will return the length */
index
=
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