Modify ↓
#1361 closed Bug (Fixed)
_SetTime() and _SetDate() crash when accessing non-array
| Reported by: | gtyler | Owned by: | |
|---|---|---|---|
| Milestone: | 3.3.3.2 | Component: | AutoIt |
| Version: | 3.3.2.0 | Severity: | None |
| Keywords: | Cc: |
Description
Here's the trace:
C:\Program Files\AutoIt3\Include\Date.au3 (1394) : ==> Subscript used with non-Array variable.: Return Int($iRetval[0]) Return Int($iRetval^ ERROR
I suggest changing two lines of code:
2245: If @error Or $aResult[0] = -1 Then Return SetError(1, @extended, 0)
2332: If @error Or Not $aResult Then Return SetError(1, @extended, False)
This will allow calling programs to see @error as non-zero and act accordingly when a result array is not available.
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
| Resolution: | → Fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 16 years ago
| Milestone: | Future Release → 3.3.3.2 |
|---|
Note:
See TracTickets
for help on using tickets.

Solved by #1378