Fix registry path for ETW argument lookup. (#16347)
authorBrian Robbins <brianrob@microsoft.com>
Tue, 13 Feb 2018 22:34:31 +0000 (14:34 -0800)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2018 22:34:31 +0000 (14:34 -0800)
src/mscorlib/shared/System/Diagnostics/Tracing/EventProvider.cs

index b93be1a..4e45a98 100644 (file)
@@ -561,7 +561,7 @@ namespace System.Diagnostics.Tracing
             if (filterData == null)
             {
 #if (!ES_BUILD_PCL && !ES_BUILD_PN && PLATFORM_WINDOWS)
-                string regKey = @"\Microsoft\Windows\CurrentVersion\Winevt\Publishers\{" + m_providerName + "}";
+                string regKey = @"\Microsoft\Windows\CurrentVersion\Winevt\Publishers\{" + m_providerId + "}";
                 if (System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)) == 8)
                     regKey = @"HKEY_LOCAL_MACHINE\Software" + @"\Wow6432Node" + regKey;
                 else