Alexander Fischer : winhttp: Added stubs to function request_set_option.

Alexandre Julliard julliard at winehq.org
Tue Jun 29 15:58:26 CDT 2021


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

Author: Alexander Fischer <fischeralex1993 at gmail.com>
Date:   Sat Jun 26 15:25:38 2021 +0200

winhttp: Added stubs to function request_set_option.

WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE and
WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE, (defined in include/winhttp.h)
weren't handled yet, which caused 'Amazon Games App' downloads to fail.

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

---

 dlls/winhttp/session.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c
index dcea874306a..e4e8f1cec56 100644
--- a/dlls/winhttp/session.c
+++ b/dlls/winhttp/session.c
@@ -1041,6 +1041,14 @@ static BOOL request_set_option( struct object_header *hdr, DWORD option, void *b
         SetLastError(ERROR_INVALID_PARAMETER);
         return FALSE;
 
+    case WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE:
+        FIXME("WINHTTP_OPTION_MAX_RESPONSE_HEADER_SIZE\n");
+        return TRUE;
+
+    case WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE:
+        FIXME("WINHTTP_OPTION_MAX_RESPONSE_DRAIN_SIZE\n");
+        return TRUE;
+
     default:
         FIXME("unimplemented option %u\n", option);
         SetLastError( ERROR_WINHTTP_INVALID_OPTION );




More information about the wine-cvs mailing list