[pywin32-checkins] pywin32/win32/Lib win32evtlogutil.py,1.12,1.13
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2009-02-10 11:19:14
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16808/win32/Lib Modified Files: win32evtlogutil.py Log Message: LoadLibrary with LOAD_LIBRARY_AS_DATAFILE instead of DONT_RESOLVE_DLL_REFERENCES to prevent issues formatting some eventlog messages. Index: win32evtlogutil.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32evtlogutil.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** win32evtlogutil.py 11 Dec 2008 05:13:07 -0000 1.12 --- win32evtlogutil.py 10 Feb 2009 11:19:06 -0000 1.13 *************** *** 2,6 **** """ ! import win32api, win32con, winerror, win32evtlog, string error = win32api.error # The error the evtlog module raises. --- 2,6 ---- """ ! import win32api, win32con, winerror, win32evtlog error = win32api.error # The error the evtlog module raises. *************** *** 110,114 **** dllName = win32api.ExpandEnvironmentStrings(dllName) ! dllHandle = win32api.LoadLibraryEx(dllName, 0, win32con.DONT_RESOLVE_DLL_REFERENCES) try: data = win32api.FormatMessageW(win32con.FORMAT_MESSAGE_FROM_HMODULE, --- 110,114 ---- dllName = win32api.ExpandEnvironmentStrings(dllName) ! dllHandle = win32api.LoadLibraryEx(dllName, 0, win32con.LOAD_LIBRARY_AS_DATAFILE) try: data = win32api.FormatMessageW(win32con.FORMAT_MESSAGE_FROM_HMODULE, |