Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#3104 closed Bug (Fixed)

'_EventLog__Read()' returns only domain name!?

Reported by: supersonic Owned by: Jpm
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 Changed 4 years ago by Jpm

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

Fixed by revision [11477] in version: 3.3.15.1

comment:2 Changed 4 years ago by guinness

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.

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 owner will remain Jpm.
Author


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

 
Note: See TracTickets for help on using tickets.