From ab77c7bb06a28d9bf419abf1c6604b848290b91e Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Thu, 31 Oct 2019 13:37:42 +0100 Subject: [PATCH] httpapi: Add stub for HttpReceiveRequestEntityBody. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48017 Signed-off-by: Louis Lenders Signed-off-by: Alexandre Julliard --- dlls/httpapi/httpapi.spec | 2 +- dlls/httpapi/httpapi_main.c | 14 ++++++++++++++ include/http.h | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/dlls/httpapi/httpapi.spec b/dlls/httpapi/httpapi.spec index e2f165c6880..c27d0c96b07 100644 --- a/dlls/httpapi/httpapi.spec +++ b/dlls/httpapi/httpapi.spec @@ -39,7 +39,7 @@ @ stub HttpReceiveClientCertificate @ stdcall HttpReceiveHttpRequest(ptr int64 long ptr long ptr ptr) @ stub HttpReceiveHttpResponse -@ stub HttpReceiveRequestEntityBody +@ stdcall HttpReceiveRequestEntityBody(ptr int64 long ptr long ptr ptr) @ stub HttpRemoveAllUrlsFromConfigGroup @ stdcall HttpRemoveUrl(ptr wstr) @ stub HttpRemoveUrlFromConfigGroup diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c index 03511d6c9fb..47b5d8a2bba 100644 --- a/dlls/httpapi/httpapi_main.c +++ b/dlls/httpapi/httpapi_main.c @@ -279,6 +279,20 @@ ULONG WINAPI HttpRemoveUrl(HANDLE queue, const WCHAR *url) } /*********************************************************************** + * HttpReceiveRequestEntityBody (HTTPAPI.@) + */ +ULONG WINAPI HttpReceiveRequestEntityBody(HANDLE queue, HTTP_REQUEST_ID id, ULONG flags, + void *buffer, ULONG size, ULONG *ret_size, OVERLAPPED *ovl) +{ + *ret_size = 0; + + FIXME("stub: queue %p, id %s, flags %#x, buffer %p, size %#x, ret_size %p, ovl %p.\n", + queue, wine_dbgstr_longlong(id), flags, buffer, size, ret_size, ovl); + + return ERROR_HANDLE_EOF; +} + +/*********************************************************************** * HttpReceiveHttpRequest (HTTPAPI.@) */ ULONG WINAPI HttpReceiveHttpRequest(HANDLE queue, HTTP_REQUEST_ID id, ULONG flags, diff --git a/include/http.h b/include/http.h index 7586d0cbe01..49eb557fae3 100644 --- a/include/http.h +++ b/include/http.h @@ -441,6 +441,7 @@ ULONG WINAPI HttpInitialize(HTTPAPI_VERSION version, ULONG flags, void *reserved ULONG WINAPI HttpTerminate(ULONG flags, void *reserved); ULONG WINAPI HttpQueryServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,PVOID,ULONG,PULONG,LPOVERLAPPED); ULONG WINAPI HttpReceiveHttpRequest(HANDLE queue, HTTP_REQUEST_ID id, ULONG flags, HTTP_REQUEST *request, ULONG size, ULONG *ret_size, OVERLAPPED *ovl); +ULONG WINAPI HttpReceiveRequestEntityBody(HANDLE queue, HTTP_REQUEST_ID id, ULONG flags, void *buffer, ULONG size, ULONG *ret_size, OVERLAPPED *ovl); ULONG WINAPI HttpRemoveUrl(HANDLE queue, const WCHAR *url); ULONG WINAPI HttpRemoveUrlFromUrlGroup(HTTP_URL_GROUP_ID id, const WCHAR *url, ULONG flags); ULONG WINAPI HttpSendHttpResponse(HANDLE queue, HTTP_REQUEST_ID id, ULONG flags, HTTP_RESPONSE *response, HTTP_CACHE_POLICY *cache_policy, ULONG *ret_size, void *reserved1, ULONG reserved2, OVERLAPPED *ovl, HTTP_LOG_DATA *log_data); -- 2.11.4.GIT