From e75dd439d7f37c0d57ba72f94eb533b378f9812e Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 13 Dec 2023 08:44:59 +1000 Subject: [PATCH] Ensure filename is not null when loggin WDAC ETW events --- src/System.Management.Automation/utils/tracing/PSEtwLog.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs index 6ec720566d5..45f8f39eea9 100644 --- a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs +++ b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs @@ -141,7 +141,7 @@ internal static void LogWDACQueryEvent( int querySuccess, int queryResult) { - provider.LogWDACQueryEvent(queryName, fileName, querySuccess, queryResult); + provider.LogWDACQueryEvent(queryName, fileName ?? string.Empty, querySuccess, queryResult); } ///