Zebediah Figura : httpapi: Allow passing NULL size to HttpReceiveRequestEntityBody().
Module: wine Branch: master Commit: c9f628042216eea338a154f0585003fe9187bacc URL: https://gitlab.winehq.org/wine/wine/-/commit/c9f628042216eea338a154f0585003f... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Tue Dec 20 00:57:38 2022 -0600 httpapi: Allow passing NULL size to HttpReceiveRequestEntityBody(). --- dlls/httpapi/httpapi_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/httpapi/httpapi_main.c b/dlls/httpapi/httpapi_main.c index cd00608c1ca..10131fdd029 100644 --- a/dlls/httpapi/httpapi_main.c +++ b/dlls/httpapi/httpapi_main.c @@ -278,6 +278,7 @@ ULONG WINAPI HttpReceiveRequestEntityBody(HANDLE queue, HTTP_REQUEST_ID id, ULON .bits = sizeof(void *) * 8, }; ULONG ret = ERROR_SUCCESS; + ULONG local_ret_size; OVERLAPPED sync_ovl; TRACE("queue %p, id %s, flags %#lx, buffer %p, size %#lx, ret_size %p, ovl %p.\n", @@ -292,6 +293,9 @@ ULONG WINAPI HttpReceiveRequestEntityBody(HANDLE queue, HTTP_REQUEST_ID id, ULON ovl = &sync_ovl; } + if (!ret_size) + ret_size = &local_ret_size; + if (!DeviceIoControl(queue, IOCTL_HTTP_RECEIVE_BODY, ¶ms, sizeof(params), buffer, size, ret_size, ovl)) ret = GetLastError();
participants (1)
-
Alexandre Julliard