From b82bf04668ebac8754e43a5eb12caf0ac6e78019 Mon Sep 17 00:00:00 2001 From: Martin Kuntz Jacobsen Date: Mon, 9 Nov 2026 12:15:17 +0100 Subject: [PATCH] msix: Get-StoreCertificate keeps an empty result an array (part of #9753) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xut2hwESun1HL2eSVd1d5B --- families/msix/tests/sign_test.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/families/msix/tests/sign_test.ps1 b/families/msix/tests/sign_test.ps1 index 54872e726..f53d6b600 100644 --- a/families/msix/tests/sign_test.ps1 +++ b/families/msix/tests/sign_test.ps1 @@ -74,7 +74,7 @@ function Get-StoreCertificate([string]$Thumbprint) { $store = [System.Security.Cryptography.X509Certificates.X509Store]::new("My", "CurrentUser") $store.Open([System.Security.Cryptography.X509Certificates.OpenFlags]::ReadOnly) try { - return @($store.Certificates | Where-Object { $_.Thumbprint -ceq $Thumbprint }) + return ,@($store.Certificates | Where-Object { $_.Thumbprint -ceq $Thumbprint }) } finally { $store.Close() }