https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1c9d825b788601e1f15ad…
commit 1c9d825b788601e1f15ad657e4768519ddc1bf91
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Sun Nov 3 16:59:47 2019 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Sun Nov 3 17:00:58 2019 +0100
[HTTPAPI] Fix MSVC2010 build.
---
dll/win32/httpapi/httpapi_main.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dll/win32/httpapi/httpapi_main.c b/dll/win32/httpapi/httpapi_main.c
index 45fad4d3641..62e90e85677 100644
--- a/dll/win32/httpapi/httpapi_main.c
+++ b/dll/win32/httpapi/httpapi_main.c
@@ -287,6 +287,7 @@ ULONG WINAPI HttpRemoveUrl(HANDLE queue, const WCHAR *url)
ULONG WINAPI HttpReceiveHttpRequest(HANDLE queue, HTTP_REQUEST_ID id, ULONG flags,
HTTP_REQUEST *request, ULONG size, ULONG *ret_size, OVERLAPPED *ovl)
{
+#ifndef __REACTOS__
struct http_receive_request_params params =
{
.addr = (ULONG_PTR)request,
@@ -294,6 +295,10 @@ ULONG WINAPI HttpReceiveHttpRequest(HANDLE queue, HTTP_REQUEST_ID id,
ULONG flag
.flags = flags,
.bits = sizeof(void *) * 8,
};
+#else
+ struct http_receive_request_params params =
+ { (ULONGLONG)(ULONG_PTR)request, id, flags, sizeof(void *) * 8 };
+#endif
ULONG ret = ERROR_SUCCESS;
OVERLAPPED sync_ovl;