Commit d1d37e40 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

httpapi: Allow passing NULL size to HttpReceiveHttpRequest().

parent f5a81ff0
......@@ -323,6 +323,7 @@ ULONG WINAPI HttpReceiveHttpRequest(HANDLE queue, HTTP_REQUEST_ID id, ULONG flag
.bits = sizeof(void *) * 8,
};
ULONG ret = ERROR_SUCCESS;
ULONG local_ret_size;
OVERLAPPED sync_ovl;
TRACE("queue %p, id %s, flags %#lx, request %p, size %#lx, ret_size %p, ovl %p.\n",
......@@ -340,6 +341,9 @@ ULONG WINAPI HttpReceiveHttpRequest(HANDLE queue, HTTP_REQUEST_ID id, ULONG flag
ovl = &sync_ovl;
}
if (!ret_size)
ret_size = &local_ret_size;
if (!DeviceIoControl(queue, IOCTL_HTTP_RECEIVE_REQUEST, &params, sizeof(params), request, size, ret_size, ovl))
ret = GetLastError();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment