#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 , 11 years ago
| Milestone: | → 3.3.15.1 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
comment:2 by , 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.

Fixed by revision [11477] in version: 3.3.15.1