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@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexander Fischer 2021-06-26 15:25:38 +02:00 committed by Alexandre Julliard
parent 362eed3ae3
commit b9f012e14c

View file

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