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
253d2c17
Commit
253d2c17
authored
Oct 26, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp: Implement HTTP_OPTION_PARENT_HANDLE for connection handles.
parent
4a8f4f28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
session.c
dlls/winhttp/session.c
+27
-1
No files found.
dlls/winhttp/session.c
View file @
253d2c17
...
...
@@ -229,10 +229,36 @@ static void connect_destroy( object_header_t *hdr )
heap_free
(
connect
);
}
static
BOOL
connect_query_option
(
object_header_t
*
hdr
,
DWORD
option
,
LPVOID
buffer
,
LPDWORD
buflen
)
{
connect_t
*
connect
=
(
connect_t
*
)
hdr
;
switch
(
option
)
{
case
WINHTTP_OPTION_PARENT_HANDLE
:
{
if
(
!
buffer
||
*
buflen
<
sizeof
(
HINTERNET
))
{
*
buflen
=
sizeof
(
HINTERNET
);
set_last_error
(
ERROR_INSUFFICIENT_BUFFER
);
return
FALSE
;
}
*
(
HINTERNET
*
)
buffer
=
((
object_header_t
*
)
connect
->
session
)
->
handle
;
*
buflen
=
sizeof
(
HINTERNET
);
return
TRUE
;
}
default:
FIXME
(
"unimplemented option %u
\n
"
,
option
);
set_last_error
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
}
static
const
object_vtbl_t
connect_vtbl
=
{
connect_destroy
,
NULL
,
connect_query_option
,
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