From d34e31c09cf1ec7e4715e0281cc1f66ac5b5071c Mon Sep 17 00:00:00 2001 From: Diego Date: Fri, 26 Apr 2024 18:26:56 +0200 Subject: [PATCH] Bug fixes (#94) Bug fixes: - added missing "." for dwFlags - added missing constant enum ERROR_INVALID_PARAMETER Changelog pending --- src/stdHTTP.cls | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stdHTTP.cls b/src/stdHTTP.cls index d7464ac..c13d06f 100644 --- a/src/stdHTTP.cls +++ b/src/stdHTTP.cls @@ -97,6 +97,7 @@ Private Enum WINHTTP_ERROR ERROR_WINHTTP_CLIENT_CERT_NO_PRIVATE_KEY = (WINHTTP_ERROR_BASE + 185) ERROR_WINHTTP_CLIENT_CERT_NO_ACCESS_PRIVATE_KEY = (WINHTTP_ERROR_BASE + 186) WINHTTP_ERROR_LAST = (WINHTTP_ERROR_BASE + 186) + ERROR_WINHTTP_INVALID_PARAMETER = 87 ' Standard Windows API error code for invalid parameter End Enum Private Enum WinHttpRequestOption @@ -567,7 +568,7 @@ Private Function GetProxyCurrentUser(ByVal sURL As String) As ProxyInfoEx 'If IE is configured to use an auto-config script, then we will use it too If (IEProxyConfig.lpszAutoConfigUrl <> 0) Then With AutoProxyOptions - .dwFlags = dwFlags Or CONFIG_URL + .dwFlags = .dwFlags Or CONFIG_URL .lpszAutoConfigUrl = IEProxyConfig.lpszAutoConfigUrl End With doAutoProxy = True