Modify ↓
Opened 17 years ago
Closed 17 years ago
#763 closed Bug (Fixed)
GUICtrlCreateIcon returns a 0 handle but doesn't destroy the created control.
| Reported by: | Jos | Owned by: | J-Paul Mesnage |
|---|---|---|---|
| Milestone: | 3.3.1.0 | Component: | AutoIt |
| Version: | 3.3.0.0 | Severity: | None |
| Keywords: | Cc: |
Description
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
Attachments (0)
Change History (1)
comment:1 by , 17 years ago
| Milestone: | → 3.3.1.0 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

Fixed in version: 3.3.1.0