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
dd35601b
Commit
dd35601b
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_DIAGNOSTIC_SOCKET_INFO query.
parent
8328562e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
http.c
dlls/wininet/http.c
+1
-1
http.c
dlls/wininet/tests/http.c
+5
-0
No files found.
dlls/wininet/http.c
View file @
dd35601b
...
...
@@ -1997,7 +1997,7 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
info
->
Flags
|=
IDSI_FLAG_KEEP_ALIVE
;
if
(
req
->
proxy
)
info
->
Flags
|=
IDSI_FLAG_PROXY
;
if
(
req
->
netconn
->
secure
)
if
(
req
->
netconn
&&
req
->
netconn
->
secure
)
info
->
Flags
|=
IDSI_FLAG_SECURE
;
return
ERROR_SUCCESS
;
...
...
dlls/wininet/tests/http.c
View file @
dd35601b
...
...
@@ -3249,6 +3249,7 @@ static void test_HttpQueryInfo(int port)
static
void
test_options
(
int
port
)
{
INTERNET_DIAGNOSTIC_SOCKET_INFO
idsi
;
HINTERNET
ses
,
con
,
req
;
DWORD
size
,
error
;
DWORD_PTR
ctx
;
...
...
@@ -3349,6 +3350,10 @@ static void test_options(int port)
ok
(
ret
,
"InternetQueryOption failed %u
\n
"
,
GetLastError
());
ok
(
ctx
==
3
,
"expected 3 got %lu
\n
"
,
ctx
);
size
=
sizeof
(
idsi
);
ret
=
InternetQueryOption
(
req
,
INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO
,
&
idsi
,
&
size
);
ok
(
ret
,
"InternetQueryOption failed %u
\n
"
,
GetLastError
());
/* 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