From d898f18b3d9989c39fc3d92e71d1efc08b2685a2 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 28 Aug 2016 05:52:47 +0000 Subject: [PATCH] spelling: comments in src/System.Management.Automation/security --- .../security/CatalogHelper.cs | 16 ++++++++-------- .../security/SecurityManager.cs | 2 +- .../security/SecuritySupport.cs | 4 ++-- .../security/wldpNativeMethods.cs | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/System.Management.Automation/security/CatalogHelper.cs b/src/System.Management.Automation/security/CatalogHelper.cs index 46ef4a05c..0223b41ba 100644 --- a/src/System.Management.Automation/security/CatalogHelper.cs +++ b/src/System.Management.Automation/security/CatalogHelper.cs @@ -103,7 +103,7 @@ namespace System.Management.Automation } // One Windows 7 this API sent version information as decimal 1 not hex (0X100 = 256) // so we are checking for that value as well. Reason we are not checking for version 2 above in - // this scenario because catalog verion 2 is not supported on win7. + // this scenario because catalog version 2 is not supported on win7. else if ((catalogInfo.dwPublicVersion == catalogVersion1) || (catalogInfo.dwPublicVersion == 1)) { catalogVersion = 1; @@ -152,14 +152,14 @@ namespace System.Management.Automation } /// - /// Generate the Catalog Defintion File representing files and folders + /// Generate the Catalog Definition File representing files and folders /// /// /// Path of expected output .cdf file /// /// Path of the output catalog file /// - /// Path of the catalog definiton file + /// Path of the catalog definition file /// /// Version of catalog /// @@ -213,7 +213,7 @@ namespace System.Management.Automation /// working set of relative paths of all files. /// content to be added in CatalogHeader section of cdf File /// content to be added in CatalogFiles section of cdf File - /// indictaing the current no of catalog header level attributes + /// indicating the current no of catalog header level attributes /// void internal static void ProcessFileToBeAddedInCatalogDefinitionFile(FileInfo fileToHash, DirectoryInfo dirInfo, ref HashSet relativePaths, ref string cdfHeaderContent, ref string cdfFilesContent, ref int catAttributeCount) { @@ -252,7 +252,7 @@ namespace System.Management.Automation } } /// - /// Generate the Catalog file for Input Catalog Defintion File + /// Generate the Catalog file for Input Catalog Definition File /// /// /// Path to the Input .cdf file @@ -346,7 +346,7 @@ namespace System.Management.Automation if (!String.IsNullOrEmpty(hashAlgorithm)) { - // Generate Path for Catalog Defintion File + // Generate Path for Catalog Definition File string cdfFilePath = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetRandomFileName()); cdfFilePath = cdfFilePath + ".cdf"; try @@ -355,8 +355,8 @@ namespace System.Management.Automation if (!File.Exists(cdfFilePath)) { - // If we are not able to generate catalog defintion file we can not continue generating catalog - // throw PSTraceSource.NewInvalidOperationException("catalog", CatalogStrings.CatalogDefintionFileNotGenerated); + // If we are not able to generate catalog definition file we can not continue generating catalog + // throw PSTraceSource.NewInvalidOperationException("catalog", CatalogStrings.CatalogDefinitionFileNotGenerated); ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(CatalogStrings.CatalogDefintionFileNotGenerated), "CatalogDefintionFileNotGenerated", ErrorCategory.InvalidOperation, null); _cmdlet.ThrowTerminatingError(errorRecord); } diff --git a/src/System.Management.Automation/security/SecurityManager.cs b/src/System.Management.Automation/security/SecurityManager.cs index 2dd5df8a6..e7557915f 100644 --- a/src/System.Management.Automation/security/SecurityManager.cs +++ b/src/System.Management.Automation/security/SecurityManager.cs @@ -53,7 +53,7 @@ namespace Microsoft.PowerShell /// run or not. This is the default setting. /// Unrestricted - No files must be signed. If a file originates from the /// internet, Monad provides a warning prompt to alert the user. To - /// supress this warning message, right-click on the file in File Explorer, + /// suppress this warning message, right-click on the file in File Explorer, /// select "Properties," and then "Unblock." /// Bypass - No files must be signed, and internet origin is not verified /// diff --git a/src/System.Management.Automation/security/SecuritySupport.cs b/src/System.Management.Automation/security/SecuritySupport.cs index ffaabf398..bb57f54de 100644 --- a/src/System.Management.Automation/security/SecuritySupport.cs +++ b/src/System.Management.Automation/security/SecuritySupport.cs @@ -37,7 +37,7 @@ namespace Microsoft.PowerShell { /// Unrestricted - No files must be signed. If a file originates from the /// internet, Monad provides a warning prompt to alert the user. To - /// supress this warning message, right-click on the file in File Explorer, + /// suppress this warning message, right-click on the file in File Explorer, /// select "Properties," and then "Unblock." Unrestricted = 0, @@ -642,7 +642,7 @@ namespace System.Management.Automation.Internal /// /// check to see if the specified cert is suitable to be - /// used as an encryption cert for PKI encyryption. Note + /// used as an encryption cert for PKI encryption. Note /// that this cert doesn't require the private key. /// /// diff --git a/src/System.Management.Automation/security/wldpNativeMethods.cs b/src/System.Management.Automation/security/wldpNativeMethods.cs index 17d423d55..a50d7ed42 100644 --- a/src/System.Management.Automation/security/wldpNativeMethods.cs +++ b/src/System.Management.Automation/security/wldpNativeMethods.cs @@ -105,7 +105,7 @@ namespace System.Management.Automation.Security MessageId = "System.Runtime.InteropServices.SafeHandle.DangerousGetHandle")] private static SystemEnforcementMode GetWldpPolicy(string path, SafeHandle handle) { - // If the WLDP assembly is missing (such as windows 7 or down OS), return default/None to skip WLDP valification + // If the WLDP assembly is missing (such as windows 7 or down OS), return default/None to skip WLDP validation if (s_hadMissingWldpAssembly || !IO.File.Exists(IO.Path.Combine(Environment.SystemDirectory, "wldp.dll"))) { s_hadMissingWldpAssembly = true;