2012-12-12 Ramon Novoa <rnovoa@artica.es>

* 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
This commit is contained in:
Ramon Novoa 2012-12-12 11:49:44 +00:00
parent 484e7787e9
commit 7f9d5d2c71
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2012-12-12 Ramon Novoa <rnovoa@artica.es>
* 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 <sergio.martin@artica.es>
* pandora_windows_service.h

View File

@ -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 {