diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 61caed4195..098f107fe2 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,9 @@ +2009-05-28 Ramon Novoa + + * modules/pandora_module_logevent.cc: Fixed the calculation of the + newest event offset. Removed module output when no log events are + found. + 2009-05-25 Ramon Novoa * windows/pandora_wmi.cc, windows/pandora_wmi.h: Added functions for the diff --git a/pandora_agents/win32/modules/pandora_module_logevent.cc b/pandora_agents/win32/modules/pandora_module_logevent.cc index 974baef5f6..1c207068f0 100755 --- a/pandora_agents/win32/modules/pandora_module_logevent.cc +++ b/pandora_agents/win32/modules/pandora_module_logevent.cc @@ -89,7 +89,6 @@ Pandora_Module_Logevent::run () { // No data if (event_list.size () < 1) { - this->setOutput (""); return; } @@ -166,7 +165,7 @@ Pandora_Module_Logevent::discardLogEvents () { // Get the offset of the newest event GetOldestEventLogRecord (this->log_event, &oldest_event); GetNumberOfEventLogRecords (this->log_event, &num_events); - newest_event = oldest_event + num_events; + newest_event = (oldest_event + num_events) - 1; // Initialize the event record buffer pevlr = (EVENTLOGRECORD *)&bBuffer;