X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=event.cpp;fp=event.cpp;h=0bf8960f9a0c8af76160d3e30b0feac846a8a4b1;hb=3f77c8a2c04c269f7e293a0cec517cb9cb8c5d49;hp=a409b11761ff65c9685cfc2651c4926e5bc9b965;hpb=db1d114d828b28fe91196d0f72e27502a052119b;p=nssm.git diff --git a/event.cpp b/event.cpp index a409b11..0bf8960 100644 --- a/event.cpp +++ b/event.cpp @@ -1,5 +1,6 @@ #include "nssm.h" +#define NSSM_SOURCE _T("nssm") #define NSSM_ERROR_BUFSIZE 65535 #define NSSM_NUM_EVENT_STRINGS 16 unsigned long tls_index; @@ -42,7 +43,7 @@ void log_event(unsigned short type, unsigned long id, ...) { TCHAR *strings[NSSM_NUM_EVENT_STRINGS]; /* Open event log */ - HANDLE handle = RegisterEventSource(0, NSSM); + HANDLE handle = RegisterEventSource(0, NSSM_SOURCE); if (! handle) return; /* Log it */