Skip to content

Commit

Permalink
Fix a regression with IgnoreWarnings
Browse files Browse the repository at this point in the history
* Commit 1d88dea removed the IgnoreWarnings flag which was
  needed as a fix for pbatard/rufus#2030.
* Contributed by @Tom-EllisEVENTS.
* Closes pbatard/rufus#2315.
  • Loading branch information
pbatard committed Sep 8, 2023
1 parent 4a69442 commit 5d4a4d7
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions Fido.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Fido v1.50 - Feature ISO Downloader, for retail Windows images and UEFI Shell
# Fido v1.51 - Feature ISO Downloader, for retail Windows images and UEFI Shell
# Copyright © 2019-2023 Pete Batard <pete@akeo.ie>
# Command line support: Copyright © 2021 flx5
# ConvertTo-ImageSource: Copyright © 2016 Chris Carter
Expand Down Expand Up @@ -97,6 +97,7 @@ $Signature = @{
ReferencedAssemblies = $Drawing_Assembly
ErrorAction = "Stop"
WarningAction = "Ignore"
IgnoreWarnings = $true
MemberDefinition = @"
[DllImport("shell32.dll", CharSet = CharSet.Auto, SetLastError = true, BestFitMapping = false, ThrowOnUnmappableChar = true)]
internal static extern int ExtractIconEx(string sFile, int iIndex, out IntPtr piLargeVersion, out IntPtr piSmallVersion, int amountIcons);
Expand Down Expand Up @@ -1053,8 +1054,8 @@ exit $ExitCode
# SIG # Begin signature block
# MIIkWQYJKoZIhvcNAQcCoIIkSjCCJEYCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCDGtmQ3n2+aDS3/
# QYCl5G5W0g17so4OQ4o2zs/2W6PNjaCCElkwggVvMIIEV6ADAgECAhBI/JO0YFWU
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAjh2Jm/Ps1bMJ+
# sT/W5vO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DQEJEAIvMSgwJjAkMCIEIMR0znYAfQI5Tg2l5N58FMaA+eKC
# ATz+9lPvXbcf32H4MAsGCSqGSIb3DQEBAQSCAQCGb3w7mUJobd+bURtqSY0Fn1zv
# SMe/Sf2G9CSCHx90UFHL7jfcamMFBteqepXSWNfwCGWnLKn4lhxLXNpT2f680a+H
# N0xwU5xE7Wgmg6GGNIkioHANFIegJXLtqixVrZnUWzRCN5gURghv0G9pAVooPyAs
# yzg7GfiPQdDf4MK+9uELA0yPZ23ZZTdYxbuaANHCqKnpcZ5ikZsuxak85KiVYOtu
# T09ckT0Nf20qGM063ZRi3IbkT/k6OpwgO37lr386GqoFBmfKwXWycwxOPqk/VBZC
# aCsViePV7elq6z5utgEK+slrPS5sdgheVB/uJh27Y5zt4134VoHSNHxgbCZA
# 9w0BCQMxDQYLKoZIhvcNAQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTIzMDkwODE3MzA0
# OVowLwYJKoZIhvcNAQkEMSIEIOlPG+ScXcg58Jy8YZVYx+MSPoHLFHnQexxjBwsE
# YjviMDcGCyqGSIb3DQEJEAIvMSgwJjAkMCIEIMR0znYAfQI5Tg2l5N58FMaA+eKC
# ATz+9lPvXbcf32H4MAsGCSqGSIb3DQEBAQSCAQBFLhAwze81QjMjju80z0pzfNZO
# sqoCJCLFSqz02v61h/vQ54WqEZv/6g6sGQ0imYVh8I1t3W85lNVvYu1g8MenD5qd
# 0ffyMbaEZO01C2n3Up5kymTy00ZcgB7RWwkAA/v6cK+p+SJ6cBWikOSZLQrTB2ky
# X5p3fd5ox0i4G1LTFNw98v3ax7ylgO7ub4p72BVMIXqzxyRBsm+KWriQ3vCjRXf6
# YcRoIUrYY5Sack7A/jPjh41HeQJr9vmXss/j6SFvaJZYDszrFQCr1dsDQiE0M8bc
# YG9xE7np/Ft+KIZY3zI5iAta9KZKcq5LbFe0VuwqVxslgEwEW5ekfPmCPtNG
# SIG # End signature block

0 comments on commit 5d4a4d7

Please sign in to comment.