Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#3104 closed Bug (Fixed)

'_EventLog__Read()' returns only domain name!?

Reported by: supersonic Owned by: Jpm
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:


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 to and latest beta Version.

A fix would be nice.

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by Jpm

  • Milestone set to
  • Owner set to Jpm
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [11477] in version:

comment:2 Changed 8 years ago by guinness

A safer option would 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.

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

as closed The owner will remain Jpm.

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

Note: See TracTickets for help on using tickets.