Hans Leidekker : winhttp: Add a stub for WinHttpSetOption(WINHTTP_OPTION_ENABLE_HTTP_PROTOCOL).

Alexandre Julliard julliard at winehq.org
Fri Sep 17 16:03:09 CDT 2021


Module: wine
Branch: master
Commit: 94c46bf5331b9e4e9ca59742b898c56c1d7b43c7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=94c46bf5331b9e4e9ca59742b898c56c1d7b43c7

Author: Hans Leidekker <hans at codeweavers.com>
Date:   Fri Sep 17 14:41:12 2021 +0200

winhttp: Add a stub for WinHttpSetOption(WINHTTP_OPTION_ENABLE_HTTP_PROTOCOL).

Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 );




More information about the wine-cvs mailing list