Skip to content

Commit

Permalink
fix: Correct string comparison in Linux profiler when checking for co…
Browse files Browse the repository at this point in the history
…nstructor name
  • Loading branch information
tippmar-nr committed Dec 4, 2024
1 parent 56c8165 commit bfd6c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Agent/NewRelic/Profiler/MethodRewriter/Instrumentors.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ namespace NewRelic { namespace Profiler { namespace MethodRewriter
// some special name methods seem to give us trouble, but allow constructors to
// be instrumented
if (IsMdSpecialName(function->GetMethodAttributes()) &&
!IsMdInstanceInitializerW(function->GetMethodAttributes(), function->GetFunctionName().c_str())) {
!wcscmp(function->GetFunctionName().c_str(), _X(".ctor"))) {
LogError(L"Skipping SpecialName method: ", function->ToString());
return false;
}
Expand Down

0 comments on commit bfd6c1f

Please sign in to comment.