Modify

Opened 16 years ago

Closed 16 years ago

#1378 closed Bug (Fixed)

Wrong error handling in _Date_Time_SetLocalTime

Reported by: MrCreatoR <mscreator@…> Owned by: J-Paul Mesnage
Milestone: 3.3.3.2 Component: AutoIt
Version: 3.3.2.0 Severity: None
Keywords: Cc:

Description

Few functions in «Date.au3» (_SetDate and _SetTime) calls _Date_Time_SetLocalTime, but when used, they causing a fatal error because of wrong returns by _Date_Time_SetLocalTime.

The function check this:

If @error Or Not $aResult Then ...

but $aResult is an array if there is no error, so the function will still return False due to wrong variable's type comparision.
Should be this:

If @error Or Not $aResult[0] Then ...

And the last return of that function is also wrong, instead of Return $aResult[0] it should Return $aResult, because _SetDate and _SetTime are checking array.

Attachments (0)

Change History (1)

comment:1 by J-Paul Mesnage, 16 years ago

Milestone: 3.3.3.2
Owner: set to J-Paul Mesnage
Resolution: Fixed
Status: newclosed

Fixed by revision [5520] in version: 3.3.3.2

Modify Ticket

Action
as closed The owner will remain J-Paul Mesnage.

Add Comment


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