From 0fee8a061a20809d83c7e866476ad32a077483c7 Mon Sep 17 00:00:00 2001 From: ramonn Date: Wed, 27 Oct 2010 11:52:07 +0000 Subject: [PATCH] 2010-10-27 Ramon Novoa * modules/pandora_module_logevent.cc: We need more information on error 997, ignore it for now. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3469 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 5 +++++ pandora_agents/win32/modules/pandora_module_logevent.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 7da0b07c6f..df62e31f2b 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,8 @@ +2010-10-27 Ramon Novoa + + * modules/pandora_module_logevent.cc: We need more information on error + 997, ignore it for now. + 2010-10-04 Ramon Novoa * windows/pandora_wmi.cc: Fixed inventory NIC information. diff --git a/pandora_agents/win32/modules/pandora_module_logevent.cc b/pandora_agents/win32/modules/pandora_module_logevent.cc index a86ebd3dd6..7598c89191 100755 --- a/pandora_agents/win32/modules/pandora_module_logevent.cc +++ b/pandora_agents/win32/modules/pandora_module_logevent.cc @@ -174,8 +174,8 @@ Pandora_Module_Logevent::discardLogEvents () { rc = ReadEventLog(this->log_event, EVENTLOG_FORWARDS_READ | EVENTLOG_SEEK_READ, newest_event, pevlr, BUFFER_SIZE, &read, &needed); - // Something went wrong - if (rc != 0) { + // Something went wrong (we need more information on error 997, ignore it for now) + if (rc != 0 && rc != 997) { pandoraDebug ("ReadEventLog error %d", GetLastError ()); } }