Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#3104 closed Bug (Fixed)

'_EventLog__Read()' returns only domain name!?

Reported by: supersonic Owned by: J-Paul Mesnage
Milestone: 3.3.15.1 Component: Standard UDFs
Version: 3.3.14.0 Severity: None
Keywords: Cc:

Description

Hi -

Calling '_EventLogRead()' on a computer running in a domain environment index [12] seems to hold the domain name only. The provided example in AutoIt help file can be used to reproduce this behavior. To overcome this issue I modified the internal function 'EventLog_DecodeUserName()' this way:

If IsArray($aAcctInfo) Then Return ((Not StringLen($aAcctInfo[1])) ? ("") : ($aAcctInfo[1] & "\")) & $aAcctInfo[0]

Tested with 3.3.12.0 to 3.3.14.1 and latest beta Version.

A fix would be nice.

Attachments (0)

Change History (2)

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

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

Fixed by revision [11477] in version: 3.3.15.1

comment:2 by guinness, 11 years ago

A safer option would be...as the array could be an empty array, who knows? At least now we are checking if the array as at least 2 elements

If UBound($aAcctInfo) >= 2 Then Return (Not StringLen($aAcctInfo[1]) ? "" : $aAcctInfo[1] & "\") & $aAcctInfo[0]

I have amended.

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.