summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/syslog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/syslog.cc')
-rw-r--r--winsup/cygwin/syslog.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/syslog.cc b/winsup/cygwin/syslog.cc
index 233c8916e..d0dda8b75 100644
--- a/winsup/cygwin/syslog.cc
+++ b/winsup/cygwin/syslog.cc
@@ -17,6 +17,7 @@ details. */
#include "fhandler.h"
#include "dtable.h"
#include "cygerrno.h"
+#include "cygheap.h"
#include "thread.h"
/* FIXME: These should probably be in the registry. */
@@ -348,7 +349,7 @@ syslog (int priority, const char *message, ...)
return;
}
ReportEventA (hEventSrc, eventType, 0, 0,
- NULL, 1, 0, msg_strings, NULL);
+ cygheap->user.sid (), 1, 0, msg_strings, NULL);
DeregisterEventSource (hEventSrc);
}
else