We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9997a53 commit 9315cc6Copy full SHA for 9315cc6
lib/Runtime/Base/EtwTrace.cpp
@@ -382,7 +382,7 @@ size_t EtwTrace::GetSimpleJitFunctionName(
382
const size_t suffixCharLength = _countof(_u("Simple")) - 1;
383
384
const char16 *const functionName = GetFunctionName(body);
385
- const size_t functionNameCharLength = wcslen(functionName);
+ const size_t functionNameCharLength = body->GetDisplayNameLength();
386
const size_t requiredCharCapacity = functionNameCharLength + suffixCharLength + 1;
387
if(requiredCharCapacity > nameCharCapacity || name == NULL)
388
{
0 commit comments