winhttp: Avoid unnecessary cast in connect_query_option().

This commit is contained in:
Vova Mshanetskiy 2023-04-25 00:01:54 +03:00 committed by Alexandre Julliard
parent 8bba759156
commit 8f5aece0ce

View file

@ -383,7 +383,7 @@ static BOOL connect_query_option( struct object_header *hdr, DWORD option, void
{
if (!validate_buffer( buffer, buflen, sizeof(HINTERNET) )) return FALSE;
*(HINTERNET *)buffer = ((struct object_header *)connect->session)->handle;
*(HINTERNET *)buffer = connect->session->hdr.handle;
*buflen = sizeof(HINTERNET);
return TRUE;
}