From 9cc30ca00682d6404a02f763e5718586ce1154db Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 9 Nov 2009 16:27:22 -0800 Subject: [PATCH] (SIGAR-191) fix EventLogRecord.computerName --- bindings/java/src/jni/win32/eventlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/java/src/jni/win32/eventlog.c b/bindings/java/src/jni/win32/eventlog.c index c2997545..011e37f3 100644 --- a/bindings/java/src/jni/win32/eventlog.c +++ b/bindings/java/src/jni/win32/eventlog.c @@ -351,7 +351,7 @@ JNIEXPORT jobject SIGAR_JNI(win32_EventLog_readlog) /* Increment up to the machine name. */ machineName = (LPWSTR)((LPBYTE)pevlr + sizeof(EVENTLOGRECORD) + - wcslen(source) + 1); + (wcslen(source) + 1) * sizeof(WCHAR)); UNICODE_SetStringField("computerName", machineName); /* Get user id info */