[PATCH] winhttp: Added stubs to function request_set_option.
Alexander Fischer
fischeralex1993 at gmail.com
Sat Jun 26 08:25:38 CDT 2021
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.
With these stubs downloads now work.
Signed-off-by: Alexander Fischer <fischeralex1993 at gmail.com>
---
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 );
--
2.32.0
More information about the wine-devel
mailing list