(SIGAR-191) fix EventLogRecord.computerName
This commit is contained in:
parent
3e4a408f74
commit
9cc30ca006
|
@ -351,7 +351,7 @@ JNIEXPORT jobject SIGAR_JNI(win32_EventLog_readlog)
|
||||||
|
|
||||||
/* Increment up to the machine name. */
|
/* Increment up to the machine name. */
|
||||||
machineName = (LPWSTR)((LPBYTE)pevlr + sizeof(EVENTLOGRECORD) +
|
machineName = (LPWSTR)((LPBYTE)pevlr + sizeof(EVENTLOGRECORD) +
|
||||||
wcslen(source) + 1);
|
(wcslen(source) + 1) * sizeof(WCHAR));
|
||||||
UNICODE_SetStringField("computerName", machineName);
|
UNICODE_SetStringField("computerName", machineName);
|
||||||
|
|
||||||
/* Get user id info */
|
/* Get user id info */
|
||||||
|
|
Loading…
Reference in New Issue