From 7f9d5d2c71311ca86be9ee2accaf12385f5a11cc Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 12 Dec 2012 11:49:44 +0000 Subject: [PATCH] 2012-12-12 Ramon Novoa * modules/pandora_module_logevent.cc: Changed the flags of LoadLibraryEx. Fixes a bug when loading event descriptions from exe files. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7266 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_agents/win32/ChangeLog | 6 ++++++ pandora_agents/win32/modules/pandora_module_logevent.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_agents/win32/ChangeLog b/pandora_agents/win32/ChangeLog index 3d5c31c853..2c2d4d9de2 100644 --- a/pandora_agents/win32/ChangeLog +++ b/pandora_agents/win32/ChangeLog @@ -1,3 +1,9 @@ +2012-12-12 Ramon Novoa + + * modules/pandora_module_logevent.cc: Changed the flags of + LoadLibraryEx. Fixes a bug when loading event descriptions + from exe files. + 2012-11-20 Sergio Martin * pandora_windows_service.h diff --git a/pandora_agents/win32/modules/pandora_module_logevent.cc b/pandora_agents/win32/modules/pandora_module_logevent.cc index 318d8a08b3..2698c74969 100755 --- a/pandora_agents/win32/modules/pandora_module_logevent.cc +++ b/pandora_agents/win32/modules/pandora_module_logevent.cc @@ -357,7 +357,7 @@ Pandora_Module_Logevent::getEventDescription (PEVENTLOGRECORD pevlr, char *messa while (1) { // Load the DLL - module = LoadLibraryEx (dll_start, 0, DONT_RESOLVE_DLL_REFERENCES); + module = LoadLibraryEx (dll_start, 0, 0x20 | 2); if(module == NULL) { pandoraDebug("LoadLibraryEx error %d. Exe file path %s.", GetLastError(), exe_file_path); } else {