From 43333bc80e0b834a664556289e54eb1c9c07e657 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Wed, 13 Dec 2023 20:17:04 +0000 Subject: [PATCH] Ensure filename is not null when loggin WDAC ETW events (#20910) --- 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 6ec720566d..45f8f39eea 100644 --- a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs +++ b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs @@ -141,7 +141,7 @@ namespace System.Management.Automation.Tracing int querySuccess, int queryResult) { - provider.LogWDACQueryEvent(queryName, fileName, querySuccess, queryResult); + provider.LogWDACQueryEvent(queryName, fileName ?? string.Empty, querySuccess, queryResult); } ///