One for fix for non-windows platforms
authorVance Morrison <vancem@microsoft.com>
Tue, 10 May 2016 19:32:13 +0000 (12:32 -0700)
committerVance Morrison <vancem@microsoft.com>
Tue, 10 May 2016 19:32:13 +0000 (12:32 -0700)
src/mscorlib/src/System/Diagnostics/Eventing/EventProvider.cs

index 57d15d09332c9780240be2af24c56180ef976648..7ffdb024a5e01048ea820603c6333a814aca042a 100644 (file)
@@ -552,7 +552,7 @@ namespace System.Diagnostics.Tracing
             dataStart = 0;
             if (filterData == null)
             {
-#if !ES_BUILD_PCL
+#if !ES_BUILD_PCL && !FEATURE_PAL
                 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;