wininet: Support QueryOption INTERNET_OPTION_ERROR_MASK for http.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2019-06-21 03:58:45 +00:00 committed by Alexandre Julliard
parent 6525a16673
commit 223c3b4538
1 changed files with 9 additions and 0 deletions

View File

@ -2266,6 +2266,15 @@ static DWORD HTTPREQ_QueryOption(object_header_t *hdr, DWORD option, void *buffe
*(DWORD*)buffer = flags;
return ERROR_SUCCESS;
}
case INTERNET_OPTION_ERROR_MASK:
TRACE("INTERNET_OPTION_ERROR_MASK\n");
if (*size < sizeof(ULONG))
return ERROR_INSUFFICIENT_BUFFER;
*(ULONG*)buffer = hdr->ErrorMask;
*size = sizeof(ULONG);
return ERROR_SUCCESS;
}
return INET_QueryOption(hdr, option, buffer, size, unicode);