Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 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 Changed 14 years ago by Jpm

  • Resolution set to Fixed
  • Status changed from new to closed

Solved by #1378

comment:2 Changed 14 years ago by TicketCleanup

  • Milestone set to Future Release

Automatic ticket cleanup.

comment:3 Changed 14 years ago by Valik

  • Milestone changed from Future Release to 3.3.3.2

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.