mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
Fix NTReportError which needed an array of strings instead of just a pointer to a string
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -168,11 +168,14 @@ InitNTLogging(FILE *stream, int debug) {
|
|||||||
void
|
void
|
||||||
NTReportError(const char *name, const char *str) {
|
NTReportError(const char *name, const char *str) {
|
||||||
HANDLE hNTAppLog = NULL;
|
HANDLE hNTAppLog = NULL;
|
||||||
|
const char *buf[1];
|
||||||
|
|
||||||
|
buf[0] = str;
|
||||||
|
|
||||||
hNTAppLog = RegisterEventSource(NULL, name);
|
hNTAppLog = RegisterEventSource(NULL, name);
|
||||||
|
|
||||||
ReportEvent(hNTAppLog, EVENTLOG_ERROR_TYPE, 0,
|
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);
|
DeregisterEventSource(hNTAppLog);
|
||||||
}
|
}
|
Reference in New Issue
Block a user