﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
763	GUICtrlCreateIcon returns a 0 handle but doesn't destroy the created control.	Jos	Jpm	"GUICtrlCreateIcon returns a 0 handle but doesn't destroy the created control when the specified inpuyt DLL doesn't exists.
It should either return the valid handle for the control and only set @Error or Delete the Control when UpdateICON() routine fails.

{{{
$gui = GUICreate(""TEST"")
GUISetBkColor(0x0A659C)
$a = GUICtrlCreateIcon(@SystemDir & ""\shell32.dll"", -22, 10, 10, 32, 32)
ConsoleWrite(""$a = "" & $a & ""- "" & @error & @CRLF)
$b = GUICtrlCreateIcon(""aNonExistantFileName.dll"", -22, 10, 52, 32, 32)
ConsoleWrite(""$b = "" & $b & ""- "" & @error & @CRLF)
GUISetState()
Do
	Sleep(10)
Until GUIGetMsg() = -3
}}}
"	Bug	closed	3.3.1.0	AutoIt	3.3.0.0	None	Fixed		
