[rt.cpan.org #61484] missing results with Win32::EventLog

[email protected] ("Olivier 'dolmen' Mengué via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Tue Sep 21 09:01:05 2010: Request 61484 was acted upon.
Transaction: Correspondence added by DOLMEN
       Queue: Win32-EventLog
     Subject: missing results with Win32::EventLog
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=61484 >


My solution above was a workaround.

However there is a real bug in the Win32::EventLog code.
The lpEvtLog->CurEntryNum member is incorrectly incremented in
ReadEventLog. It should be incremented by just 1 instead of LogBuf->Length.

See
http://code.google.com/p/libwin32/source/browse/trunk/Win32-EventLog/EventLog.xs#351

-- 
Olivier Mengué - http://search.cpan.org/~dolmen/ http://github.com/dolmen/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.