Skip to content

Commit d4c2b96

Browse files
author
Felipe "Zimmerle" Costa
committed
IIS: Changes event ID (Issue #676)
ModSecurityIIS was reporting events to Windows using ID 0 which seems cause an unexpected verbose message at the event logger window as reported on #676, changing the ID to 0x1, although will be nice to have separated events for misconfiguration, warnings, etc...
1 parent 0f7cbce commit d4c2b96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iis/mymodule.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ BOOL CMyHttpModule::WriteEventViewerLog(LPCSTR szNotification, WORD category)
13101310
// Write any strings to the Event Viewer and return.
13111311
return ReportEvent(
13121312
m_hEventLog,
1313-
category, 0, 0,
1313+
category, 0, 0x1,
13141314
NULL, 1, 0, &szNotification, NULL );
13151315
}
13161316
return FALSE;

0 commit comments

Comments
 (0)