[PATCH 1/2] winhttp: Remove assertion that is no longer valid in Windows 10.

Hans Leidekker wine at gitlab.winehq.org
Thu Jun 30 07:20:32 CDT 2022


From: Hans Leidekker <hans at codeweavers.com>

---
 dlls/winhttp/net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winhttp/net.c b/dlls/winhttp/net.c
index 40c9f3c8534..be776ae2971 100644
--- a/dlls/winhttp/net.c
+++ b/dlls/winhttp/net.c
@@ -350,7 +350,7 @@ DWORD netconn_secure_connect( struct netconn *conn, WCHAR *hostname, DWORD secur
         }
 
         assert(in_bufs[0].BufferType == SECBUFFER_TOKEN);
-        assert(in_bufs[1].BufferType == SECBUFFER_EMPTY);
+        in_bufs[1].BufferType = SECBUFFER_EMPTY;
 
         if(in_bufs[0].cbBuffer + 1024 > read_buf_size) {
             BYTE *new_read_buf;
-- 
GitLab


https://gitlab.winehq.org/wine/wine/-/merge_requests/349



More information about the wine-devel mailing list