net/tshttpproxy: use correct size for Windows BOOL argument

The Windows BOOL type is an int32. We were using a bool,
which is a one byte wide. This could be responsible for the
ERROR_INVALID_PARAMETER errors we were seeing for calls to
WinHttpGetProxyForUrl.

We manually checked all other existing Windows syscalls
for similar mistakes and did not find any.

Updates #879

Co-authored-by: Aaron Klotz <[email protected]>
Signed-off-by: Josh Bleecher Snyder <[email protected]>
This commit is contained in:
Josh Bleecher SnyderandAaron Klotz authored and Josh Bleecher Snyder committed 2021-11-22 12:24:24 -08:00
1 parent 9a217ec841
commit ca1b3fe235
1 file changed
+1 -1
+1 -1
View File
@@ -190,7 +190,7 @@ type autoProxyOptions struct {
AutoConfigUrl *uint16
_ uintptr
_ uint32
FAutoLogonIfChallenged bool
FAutoLogonIfChallenged int32 // BOOL
}
// WINHTTP_PROXY_INFO