diff -u -N -r source-old/dll/win32/advapi32/service/eventlog.c source/dll/win32/advapi32/service/eventlog.c --- source-old/dll/win32/advapi32/service/eventlog.c Sun Apr 18 13:01:51 2010 +++ source/dll/win32/advapi32/service/eventlog.c Tue May 4 19:56:48 2010 @@ -945,6 +945,8 @@ ANSI_STRING *Strings; ANSI_STRING ComputerName; WORD i; + CHAR szComputerName[MAX_COMPUTERNAME_LENGTH + 1]; + DWORD dwSize; TRACE("%p, %u, %u, %lu, %p, %u, %lu, %p, %p\n", hEventLog, wType, wCategory, dwEventID, lpUserSid, @@ -962,8 +964,9 @@ for (i = 0; i < wNumStrings; i++) RtlInitAnsiString(&Strings[i], lpStrings[i]); - /*FIXME: ComputerName */ - RtlInitAnsiString(&ComputerName, ""); + dwSize = MAX_COMPUTERNAME_LENGTH + 1; + GetComputerNameA(szComputerName, &dwSize); + RtlInitAnsiString(&ComputerName, szComputerName); RpcTryExcept {