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
07e5b87f
Commit
07e5b87f
authored
May 14, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
May 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Fixed typo in tests and accompanying implementation.
parent
95de085e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
http.c
dlls/wininet/http.c
+4
-1
http.c
dlls/wininet/tests/http.c
+5
-5
No files found.
dlls/wininet/http.c
View file @
07e5b87f
...
...
@@ -3424,7 +3424,10 @@ static DWORD HTTP_HttpQueryInfoW(http_request_t *request, DWORD dwInfoLevel,
case
HTTP_QUERY_STATUS_CODE
:
{
DWORD
res
=
ERROR_SUCCESS
;
if
(
request_only
||
requested_index
)
if
(
request_only
)
return
ERROR_HTTP_INVALID_QUERY_REQUEST
;
if
(
requested_index
)
break
;
if
(
dwInfoLevel
&
HTTP_QUERY_FLAG_NUMBER
)
{
...
...
dlls/wininet/tests/http.c
View file @
07e5b87f
...
...
@@ -209,15 +209,15 @@ static void _test_status_code(unsigned line, HINTERNET req, DWORD excode)
code
=
0xdeadbeef
;
index
=
1
;
size
=
sizeof
(
code
);
res
=
HttpQueryInfo
(
req
,
HTTP_QUERY_STATUS_CODE
|
|
HTTP_QUERY_FLAG_NUMBER
,
&
code
,
&
size
,
&
index
);
res
=
HttpQueryInfo
(
req
,
HTTP_QUERY_STATUS_CODE
|
HTTP_QUERY_FLAG_NUMBER
,
&
code
,
&
size
,
&
index
);
ok_
(
__FILE__
,
line
)(
!
res
&&
GetLastError
()
==
ERROR_HTTP_HEADER_NOT_FOUND
,
"HttpQueryInfo failed: %x(%d)
\n
"
,
res
,
GetLastError
());
"
[invalid 1]
HttpQueryInfo failed: %x(%d)
\n
"
,
res
,
GetLastError
());
code
=
0xdeadbeef
;
size
=
sizeof
(
code
);
res
=
HttpQueryInfo
(
req
,
HTTP_QUERY_STATUS_CODE
|
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
&
code
,
&
size
,
NULL
);
ok_
(
__FILE__
,
line
)(
!
res
&&
GetLastError
()
==
ERROR_HTTP_
HEADER_NOT_FOUND
,
"HttpQueryInfo failed: %x(%d)
\n
"
,
res
,
GetLastError
());
res
=
HttpQueryInfo
(
req
,
HTTP_QUERY_STATUS_CODE
|
HTTP_QUERY_FLAG_REQUEST_HEADERS
,
&
code
,
&
size
,
NULL
);
ok_
(
__FILE__
,
line
)(
!
res
&&
GetLastError
()
==
ERROR_HTTP_
INVALID_QUERY_REQUEST
,
"
[invalid 2]
HttpQueryInfo failed: %x(%d)
\n
"
,
res
,
GetLastError
());
}
static
int
close_handle_cnt
;
...
...
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