﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3659	"InetClose() always return ""False""."	the.tersion@…	Jon	"The reference of InetClose() says:
''Return Value
True: if the handle was found and closed.
False: if not.''

But in this simple example, InetClose() alway return ""False"":
{{{
#include <InetConstants.au3>

Local $hDownload

$hDownload = InetGet(""http://www.autoitscript.com/autoit3/files/beta/update.dat"", @ScriptDir & ""\test.txt"", $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND)
ConsoleWrite(@error)
Sleep(5000)
$bReturn = InetClose($hDownload)
MsgBox(0, """", $bReturn)
}}}

Even here while download is effectively interrupted, InetClose() return ""False"":

{{{
Local $hDownload = InetGet(""https://www.autoitscript.com/autoit3/files/archive/autoit/autoit-v3.3.14.5-setup.exe"", @ScriptDir & ""\test.exe"", 1, 1)
ConsoleWrite($hDownload & @crlf)
ConsoleWrite(@error & @crlf)
$bReturn = InetClose($hDownload)
ConsoleWrite($bReturn & @crlf)
ConsoleWrite($hDownload & @crlf)
}}}
Output in console:
'''1
0
False
1'''

"	Bug	closed	3.3.15.4	AutoIt	3.3.14.5	None	Fixed	inetclose	
