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
33d62f3f
Commit
33d62f3f
authored
May 03, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
May 03, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wininet: Handle NULL req->netconn in INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT query.
parent
dd35601b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
http.c
dlls/wininet/http.c
+3
-0
http.c
dlls/wininet/tests/http.c
+7
-0
No files found.
dlls/wininet/http.c
View file @
33d62f3f
...
...
@@ -2125,6 +2125,9 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
case
INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT
:
{
PCCERT_CONTEXT
context
;
if
(
!
req
->
netconn
)
return
ERROR_INTERNET_INVALID_OPERATION
;
if
(
*
size
<
sizeof
(
INTERNET_CERTIFICATE_INFOA
))
{
*
size
=
sizeof
(
INTERNET_CERTIFICATE_INFOA
);
return
ERROR_INSUFFICIENT_BUFFER
;
...
...
dlls/wininet/tests/http.c
View file @
33d62f3f
...
...
@@ -3354,6 +3354,13 @@ static void test_options(int port)
ret
=
InternetQueryOption
(
req
,
INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO
,
&
idsi
,
&
size
);
ok
(
ret
,
"InternetQueryOption failed %u
\n
"
,
GetLastError
());
size
=
0
;
SetLastError
(
0xdeadbeef
);
ret
=
InternetQueryOption
(
req
,
INTERNET_OPTION_SECURITY_CERTIFICATE_STRUCT
,
NULL
,
&
size
);
error
=
GetLastError
();
ok
(
!
ret
,
"InternetQueryOption succeeded
\n
"
);
ok
(
error
==
ERROR_INTERNET_INVALID_OPERATION
,
"expected ERROR_INTERNET_INVALID_OPERATION, got %u
\n
"
,
error
);
/* INTERNET_OPTION_PROXY */
SetLastError
(
0xdeadbeef
);
ret
=
InternetQueryOptionA
(
ses
,
INTERNET_OPTION_PROXY
,
NULL
,
NULL
);
...
...
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