Fix unicode builds.

This commit is contained in:
Bartosz Taudul 2019-08-16 13:09:27 +02:00
parent 9d5240c597
commit 83fddd9aa6

View File

@ -120,7 +120,11 @@ bool SysTraceStart()
return false; return false;
} }
#ifdef UNICODE
WCHAR KernelLoggerName[sizeof( KERNEL_LOGGER_NAME )];
#else
char KernelLoggerName[sizeof( KERNEL_LOGGER_NAME )]; char KernelLoggerName[sizeof( KERNEL_LOGGER_NAME )];
#endif
memcpy( KernelLoggerName, KERNEL_LOGGER_NAME, sizeof( KERNEL_LOGGER_NAME ) ); memcpy( KernelLoggerName, KERNEL_LOGGER_NAME, sizeof( KERNEL_LOGGER_NAME ) );
EVENT_TRACE_LOGFILE log = {}; EVENT_TRACE_LOGFILE log = {};
log.LoggerName = KernelLoggerName; log.LoggerName = KernelLoggerName;