Module: wine Branch: master Commit: 8f5aece0ce396ecf5171027c126500f51787428f URL: https://gitlab.winehq.org/wine/wine/-/commit/8f5aece0ce396ecf5171027c126500f...
Author: Vova Mshanetskiy vovams163@gmail.com Date: Tue Apr 25 00:01:54 2023 +0300
winhttp: Avoid unnecessary cast in connect_query_option().
---
dlls/winhttp/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/winhttp/session.c b/dlls/winhttp/session.c index 69320bf8ee7..978bf28bc37 100644 --- a/dlls/winhttp/session.c +++ b/dlls/winhttp/session.c @@ -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; }