Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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 J-Paul Mesnage, 16 years ago

Resolution: Fixed
Status: newclosed

Solved by #1378

comment:2 by TicketCleanup, 16 years ago

Milestone: Future Release

Automatic ticket cleanup.

comment:3 by Valik, 16 years ago

Milestone: Future Release3.3.3.2

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.