(SIGAR-191) fix EventLogRecord.computerName

This commit is contained in:
Doug MacEachern 2009-11-09 16:27:22 -08:00
parent 3e4a408f74
commit 9cc30ca006
1 changed files with 1 additions and 1 deletions

View File

@ -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 */