Fix non-widows builds.
authorVance Morrison <vancem@microsoft.com>
Tue, 10 May 2016 16:38:55 +0000 (09:38 -0700)
committerVance Morrison <vancem@microsoft.com>
Tue, 10 May 2016 16:38:55 +0000 (09:38 -0700)
src/mscorlib/src/System/Diagnostics/Eventing/EventProvider.cs

index 901c7b9..57d15d0 100644 (file)
@@ -475,7 +475,7 @@ namespace System.Diagnostics.Tracing
                 providerInstance = (UnsafeNativeMethods.ManifestEtw.TRACE_PROVIDER_INSTANCE_INFO*)&structBase[providerInstance->NextOffset];
             }
 #else 
-#if !ES_BUILD_PCL   // TODO command arguments don't work on PCL builds...
+#if !ES_BUILD_PCL && !FEATURE_PAL  // TODO command arguments don't work on PCL builds...
             // Determine our session from what is in the registry.  
             string regKey = @"\Microsoft\Windows\CurrentVersion\Winevt\Publishers\{" + m_providerId + "}";
             if (System.Runtime.InteropServices.Marshal.SizeOf(typeof(IntPtr)) == 8)