From: Danny Mayer Date: Sat, 3 Aug 2002 01:34:14 +0000 (+0000) Subject: Fix NTReportError which needed an array of strings instead of just a pointer to a... X-Git-Tag: v9.2.3rc1~104^2~414 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=70406959dfa114d613bc96b838efc950fc3f32b9;p=thirdparty%2Fbind9.git Fix NTReportError which needed an array of strings instead of just a pointer to a string --- diff --git a/lib/isc/win32/syslog.c b/lib/isc/win32/syslog.c index 37750333ede..79f0e1ab2bc 100644 --- a/lib/isc/win32/syslog.c +++ b/lib/isc/win32/syslog.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: syslog.c,v 1.5 2002/08/01 03:43:31 mayer Exp $ */ +/* $Id: syslog.c,v 1.6 2002/08/03 01:34:14 mayer Exp $ */ #include @@ -168,11 +168,14 @@ InitNTLogging(FILE *stream, int debug) { void NTReportError(const char *name, const char *str) { HANDLE hNTAppLog = NULL; + const char *buf[1]; + + buf[0] = str; hNTAppLog = RegisterEventSource(NULL, name); ReportEvent(hNTAppLog, EVENTLOG_ERROR_TYPE, 0, - BIND_ERR_MSG, NULL, 1, 0,(LPCSTR *) str, NULL); + BIND_ERR_MSG, NULL, 1, 0, buf, NULL); DeregisterEventSource(hNTAppLog); } \ No newline at end of file