@@ -91,7 +91,7 @@ bool ResizeBuffer(BYTE *&buffer, size_t& size, size_t currLen, size_t newSize, b
9191
9292// shipping criteria: no EVENTPIPE-NATIVEAOT-TODO left in the codebase
9393// @TODO - Events need to be audited
94- const WCHAR* DotNETRuntimeName = L " Microsoft-Windows-DotNETRuntime" ;
94+ const WCHAR* DotNETRuntimeName = W( " Microsoft-Windows-DotNETRuntime" ) ;
9595EventPipeProvider *EventPipeProviderDotNETRuntime = nullptr ;
9696EventPipeEvent *EventPipeEventDestroyGCHandle = nullptr ;
9797EventPipeEvent *EventPipeEventExceptionThrown_V1 = nullptr ;
@@ -177,8 +177,8 @@ BOOL EventPipeEventEnabledExceptionThrown_V1(void)
177177}
178178
179179ULONG EventPipeWriteEventExceptionThrown_V1 (
180- const wchar_t * ExceptionType,
181- const wchar_t * ExceptionMessage,
180+ const WCHAR * ExceptionType,
181+ const WCHAR * ExceptionMessage,
182182 const void * ExceptionEIP,
183183 const unsigned int ExceptionHRESULT,
184184 const unsigned short ExceptionFlags,
@@ -196,8 +196,8 @@ ULONG EventPipeWriteEventExceptionThrown_V1(
196196 bool fixedBuffer = true ;
197197 bool success = true ;
198198
199- if (!ExceptionType) { ExceptionType = L " NULL" ; }
200- if (!ExceptionMessage) { ExceptionMessage = L " NULL" ; }
199+ if (!ExceptionType) { ExceptionType = W ( " NULL" ) ; }
200+ if (!ExceptionMessage) { ExceptionMessage = W ( " NULL" ) ; }
201201 success &= WriteToBuffer (ExceptionType, buffer, offset, size, fixedBuffer);
202202 success &= WriteToBuffer (ExceptionMessage, buffer, offset, size, fixedBuffer);
203203 success &= WriteToBuffer (ExceptionEIP, buffer, offset, size, fixedBuffer);
@@ -274,7 +274,7 @@ ULONG EventPipeWriteEventGCAllocationTick_V2(
274274 const unsigned short ClrInstanceID,
275275 const unsigned __int64 AllocationAmount64,
276276 const void * TypeID,
277- const wchar_t * TypeName,
277+ const WCHAR * TypeName,
278278 const unsigned int HeapIndex,
279279 const GUID * ActivityId,
280280 const GUID * RelatedActivityId)
@@ -289,7 +289,7 @@ ULONG EventPipeWriteEventGCAllocationTick_V2(
289289 bool fixedBuffer = true ;
290290 bool success = true ;
291291
292- if (!TypeName) { TypeName = L " NULL" ; }
292+ if (!TypeName) { TypeName = W ( " NULL" ) ; }
293293 success &= WriteToBuffer (AllocationAmount, buffer, offset, size, fixedBuffer);
294294 success &= WriteToBuffer (AllocationKind, buffer, offset, size, fixedBuffer);
295295 success &= WriteToBuffer (ClrInstanceID, buffer, offset, size, fixedBuffer);
@@ -325,7 +325,7 @@ ULONG EventPipeWriteEventGCAllocationTick_V3(
325325 const unsigned short ClrInstanceID,
326326 const unsigned __int64 AllocationAmount64,
327327 const void * TypeID,
328- const wchar_t * TypeName,
328+ const WCHAR * TypeName,
329329 const unsigned int HeapIndex,
330330 const void * Address,
331331 const GUID * ActivityId,
@@ -341,7 +341,7 @@ ULONG EventPipeWriteEventGCAllocationTick_V3(
341341 bool fixedBuffer = true ;
342342 bool success = true ;
343343
344- if (!TypeName) { TypeName = L " NULL" ; }
344+ if (!TypeName) { TypeName = W ( " NULL" ) ; }
345345 success &= WriteToBuffer (AllocationAmount, buffer, offset, size, fixedBuffer);
346346 success &= WriteToBuffer (AllocationKind, buffer, offset, size, fixedBuffer);
347347 success &= WriteToBuffer (ClrInstanceID, buffer, offset, size, fixedBuffer);
@@ -1458,15 +1458,15 @@ ULONG EventPipeWriteEventModuleLoad_V2(
14581458 const unsigned __int64 AssemblyID,
14591459 const unsigned int ModuleFlags,
14601460 const unsigned int Reserved1,
1461- const wchar_t * ModuleILPath,
1462- const wchar_t * ModuleNativePath,
1461+ const WCHAR * ModuleILPath,
1462+ const WCHAR * ModuleNativePath,
14631463 const unsigned short ClrInstanceID,
14641464 const GUID* ManagedPdbSignature,
14651465 const unsigned int ManagedPdbAge,
1466- const wchar_t * ManagedPdbBuildPath,
1466+ const WCHAR * ManagedPdbBuildPath,
14671467 const GUID* NativePdbSignature,
14681468 const unsigned int NativePdbAge,
1469- const wchar_t * NativePdbBuildPath,
1469+ const WCHAR * NativePdbBuildPath,
14701470 const GUID * ActivityId,
14711471 const GUID * RelatedActivityId)
14721472{
@@ -1480,10 +1480,10 @@ ULONG EventPipeWriteEventModuleLoad_V2(
14801480 bool fixedBuffer = true ;
14811481 bool success = true ;
14821482
1483- if (!ModuleILPath) { ModuleILPath = L " NULL" ; }
1484- if (!ModuleNativePath) { ModuleNativePath = L " NULL" ; }
1485- if (!ManagedPdbBuildPath) { ManagedPdbBuildPath = L " NULL" ; }
1486- if (!NativePdbBuildPath) { NativePdbBuildPath = L " NULL" ; }
1483+ if (!ModuleILPath) { ModuleILPath = W ( " NULL" ) ; }
1484+ if (!ModuleNativePath) { ModuleNativePath = W ( " NULL" ) ; }
1485+ if (!ManagedPdbBuildPath) { ManagedPdbBuildPath = W ( " NULL" ) ; }
1486+ if (!NativePdbBuildPath) { NativePdbBuildPath = W ( " NULL" ) ; }
14871487 success &= WriteToBuffer (ModuleID, buffer, offset, size, fixedBuffer);
14881488 success &= WriteToBuffer (AssemblyID, buffer, offset, size, fixedBuffer);
14891489 success &= WriteToBuffer (ModuleFlags, buffer, offset, size, fixedBuffer);
0 commit comments