Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (97 - 99 of 3864)

Ticket Resolution Summary Owner Reporter
#3237 Fixed _EventLog__Read has an error in the __EventLog_DecodeDesc Function, Insertions replace unintended variables after %1- %9 Jon BILGUS
Description

EventLog_DecodeDesc uses string replace on Insertion place holders returned from _WinAPI_FormatMessage ex. %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12 However every instance is replaced therefore The data in %1 is also replaced in %10, %11, %12, %13 etc the data in %2 is replaced in %20 %21 etc.

For instance if %1 contains Foo %10 becomes Foo0 %11 becomes Foo1 %12 becomes Foo2

The fix is to change $sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI]) to $sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI],1)

Func EventLog_DecodeDesc($tEventLog)

Local $aStrings = EventLog_DecodeStrings($tEventLog) Local $sSource = EventLog_DecodeSource($tEventLog) Local $iEventID = DllStructGetData($tEventLog, "EventID") Local $sKey = "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\" & $g_sSourceName_Event & "\" & $sSource

Local $aMsgDLL = StringSplit(_WinAPI_ExpandEnvironmentStrings(RegRead($sKey, "EventMessageFile")), ";")

Local $iFlags = BitOR($EVENTLOG_FORMAT_MESSAGE_FROM_HMODULE, $EVENTLOG_FORMAT_MESSAGE_IGNORE_INSERTS) Local $sDesc = "" For $iI = 1 To $aMsgDLL[0]

Local $hDLL = _WinAPI_LoadLibraryEx($aMsgDLL[$iI], $EVENTLOG_LOAD_LIBRARY_AS_DATAFILE) If $hDLL = 0 Then ContinueLoop Local $tBuffer = DllStructCreate("wchar Text[4096]") _WinAPI_FormatMessage($iFlags, $hDLL, $iEventID, 0, $tBuffer, 4096, 0) _WinAPI_FreeLibrary($hDLL) $sDesc &= DllStructGetData($tBuffer, "Text")

Next

If $sDesc = "" Then

For $iI = 1 To $aStrings[0]

$sDesc &= $aStrings[$iI]

Next

Else

For $iI = 1 To $aStrings[0]

$sDesc = StringReplace($sDesc, "%" & $iI, $aStrings[$iI],1);<<<<<<<<<HERE Added as 1st occurrence Bilgus 5-20-2016

Next

EndIf

Return StringStripWS($sDesc, $STR_STRIPLEADING + $STR_STRIPTRAILING)

EndFunc ;==>EventLog_DecodeDesc

#1223 Fixed _GUICtrlStatusBar_EmbedControl() Failing in beta Jpm Beege
Description

The example given in the documentation will produce the error I keep getting. I think the problem is originating in _memread() fuction, but im not sure.

C:\Program Files\AutoIt3\beta\Include\GuiStatusBar.au3 (257) : ==> Subscript used with non-Array variable.: Local $iBarX = $aRect[0] Local $iBarX = $aRect ERROR

#1228 Completed FTPEx.au3 missing callback parameter for some functions. Jpm Beege
Description

Each one of these functions use another function that allows a callback($l_Context) to be passed, but dosent include an option to pass the callback. _FTP_DirPutContents uses _FTP_FilePut _Ftp_ListToArray, _Ftp_ListToArray2D, _FTP_ListToArrayEx all use Internel _FTP_ListToArray which uses _FTP_FindFileFirst.

One small problem(not really a problem) that i ran into with this is that if you use a callback with _FTP_Connect, every time you use these functions _FTP_Connect reports that a handle has been created. Since the callback is not passed to the any of these functions, they do not report that the handle is being closed which made it apperar like I had all these open handles or something.

Documentation changes to $l_Context discription. Here is the current descriptions: _FTP_Connect - 'Optional, I dont got a clue what this does.' _FTP_FileOpen - '(Not Used) See notes below. _FTP_FileGet - '(Not Used) in case someone can use it.' _FTP_FilePut - '(Not Used) in case someone can use it.' _FTP_FindFileFirst - '(Not Used) in case someone can use it.' _FTP_Command - 'Optional, A pointer to a variable that contains an application-defined value used to identify the application context in callback operations'

I feel that all of these descriptions should be the same. Having them all point to _FTP_FileOpen might be good because that function includes a true desription about what it is and the requirements(InternetSetStatusCallback) to use it.

THANKYOU FOR AUTOIT!

Note: See TracQuery for help on using queries.