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
7ed2d587
Commit
7ed2d587
authored
Aug 27, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 28, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
httpapi: Implement HttpReceiveHttpRequest().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
980a56c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
+37
-3
httpapi_main.c
dlls/httpapi/httpapi_main.c
+37
-3
No files found.
dlls/httpapi/httpapi_main.c
View file @
7ed2d587
...
...
@@ -250,9 +250,43 @@ ULONG WINAPI HttpRemoveUrl(HANDLE queue, const WCHAR *urlW)
ULONG
WINAPI
HttpReceiveHttpRequest
(
HANDLE
queue
,
HTTP_REQUEST_ID
id
,
ULONG
flags
,
HTTP_REQUEST
*
request
,
ULONG
size
,
ULONG
*
ret_size
,
OVERLAPPED
*
ovl
)
{
FIXME
(
"queue %p, id %s, flags %#x, request %p, size %#x, ret_size %p, ovl %p, stub!
\n
"
,
queue
,
wine_dbgstr_longlong
(
id
),
flags
,
request
,
size
,
ret_size
,
ovl
);
return
ERROR_CALL_NOT_IMPLEMENTED
;
struct
http_receive_request_params
params
=
{
.
addr
=
(
ULONG_PTR
)
request
,
.
id
=
id
,
.
flags
=
flags
,
.
bits
=
sizeof
(
void
*
)
*
8
,
};
ULONG
ret
=
ERROR_SUCCESS
;
OVERLAPPED
sync_ovl
;
TRACE
(
"queue %p, id %s, flags %#x, request %p, size %#x, ret_size %p, ovl %p.
\n
"
,
queue
,
wine_dbgstr_longlong
(
id
),
flags
,
request
,
size
,
ret_size
,
ovl
);
if
(
flags
&
~
HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY
)
FIXME
(
"Ignoring flags %#x.
\n
"
,
flags
&
~
HTTP_RECEIVE_REQUEST_FLAG_COPY_BODY
);
if
(
size
<
sizeof
(
HTTP_REQUEST_V1
))
return
ERROR_INSUFFICIENT_BUFFER
;
if
(
!
ovl
)
{
sync_ovl
.
hEvent
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
ovl
=
&
sync_ovl
;
}
if
(
!
DeviceIoControl
(
queue
,
IOCTL_HTTP_RECEIVE_REQUEST
,
&
params
,
sizeof
(
params
),
request
,
size
,
NULL
,
ovl
))
ret
=
GetLastError
();
if
(
ovl
==
&
sync_ovl
)
{
ret
=
ERROR_SUCCESS
;
if
(
!
GetOverlappedResult
(
queue
,
ovl
,
ret_size
,
TRUE
))
ret
=
GetLastError
();
CloseHandle
(
sync_ovl
.
hEvent
);
}
return
ret
;
}
/***********************************************************************
...
...
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