Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 3fb58a1

Browse files
brianrobstephentoub
authored andcommitted
Fix registry path for ETW argument lookup. (dotnet/coreclr#16347)
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
1 parent 3c708ab commit 3fb58a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Common/src/CoreLib/System/Diagnostics/Tracing/EventProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ private unsafe bool GetDataFromController(int etwSessionId,
561561
if (filterData == null)
562562
{
563563
#if (!ES_BUILD_PCL && !ES_BUILD_PN && PLATFORM_WINDOWS)
564-
string regKey = @"\Microsoft\Windows\CurrentVersion\Winevt\Publishers\{" + m_providerName + "}";
564+
string regKey = @"\Microsoft\Windows\CurrentVersion\Winevt\Publishers\{" + m_providerId + "}";
565565
if (System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)) == 8)
566566
regKey = @"HKEY_LOCAL_MACHINE\Software" + @"\Wow6432Node" + regKey;
567567
else

0 commit comments

Comments
 (0)