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.
2 parents 9997a53 + 9315cc6 commit 4e344dfCopy full SHA for 4e344df
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