[PATCH 1/3] winhttp: Add a stub for WinHttpSetOption(WINHTTP_OPTION_ENABLE_HTTP_PROTOCOL).
Hans Leidekker
hans at codeweavers.com
Fri Sep 17 07:41:12 CDT 2021
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
---
dlls/winhttp/session.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index e4e8f1cec56..b9635b8933f 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -1049,6 +1049,15 @@ static BOOL request_set_option( struct object_header *hdr, DWORD option, void *b
FIXME("WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE\n");
return TRUE;
+ case WINHTTP_OPTION_ENABLE_HTTP_PROTOCOL:
+ if (buflen == sizeof(DWORD))
+ {
+ FIXME("WINHTTP_OPTION_ENABLE_HTTP_PROTOCOL %08x\n", *(DWORD *)buffer);
+ return TRUE;
+ }
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+
default:
FIXME("unimplemented option %u\n", option);
SetLastError( ERROR_WINHTTP_INVALID_OPTION );
--
2.30.2
More information about the wine-devel
mailing list