summaryrefslogtreecommitdiff
path: root/lib/chef/win32
diff options
context:
space:
mode:
authorPete Higgins <pete@peterhiggins.org>2020-05-07 16:50:25 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-18 20:29:40 -0700
commita729c9be155e3d335fbd7bd165abd4ba9610943d (patch)
tree75b4b985ff469f033dc644857a8183d784611d34 /lib/chef/win32
parenta36abdaf4c6cad4df506866021ec7abb2266706b (diff)
downloadchef-a729c9be155e3d335fbd7bd165abd4ba9610943d.tar.gz
Get lib/ free of spelling violations.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/win32')
-rw-r--r--lib/chef/win32/api.rb4
-rw-r--r--lib/chef/win32/api/error.rb2
-rw-r--r--lib/chef/win32/api/file.rb2
-rw-r--r--lib/chef/win32/api/net.rb1
-rw-r--r--lib/chef/win32/mutex.rb2
-rw-r--r--lib/chef/win32/net.rb1
-rw-r--r--lib/chef/win32/security/sid.rb2
7 files changed, 9 insertions, 5 deletions
diff --git a/lib/chef/win32/api.rb b/lib/chef/win32/api.rb
index 9e551707e6..957823220d 100644
--- a/lib/chef/win32/api.rb
+++ b/lib/chef/win32/api.rb
@@ -94,7 +94,7 @@ class Chef
host.typedef :ulong, :HMENU # (L) Handle to a menu. http://msdn.microsoft.com/en-us/library/ms646977%28VS.85%29.aspx
host.typedef :ulong, :HMETAFILE # (L) Handle to a metafile. http://msdn.microsoft.com/en-us/library/dd145051%28VS.85%29.aspx
host.typedef :ulong, :HMODULE # (L) Handle to an instance. Same as HINSTANCE today, but was different in 16-bit Windows.
- host.typedef :ulong, :HMONITOR # (L) Рandle to a display monitor. WinDef.h: if(WINVER >= 0x0500) host.typedef HANDLE HMONITOR;
+ host.typedef :ulong, :HMONITOR # (L) Handle to a display monitor. WinDef.h: if(WINVER >= 0x0500) host.typedef HANDLE HMONITOR;
host.typedef :ulong, :HPALETTE # (L) Handle to a palette.
host.typedef :ulong, :HPEN # (L) Handle to a pen. http://msdn.microsoft.com/en-us/library/dd162786%28VS.85%29.aspx
host.typedef :long, :HRESULT # Return code used by COM interfaces. For more info, Structure of the COM Error Codes.
@@ -115,7 +115,7 @@ class Chef
host.typedef :uint32, :LCID # Locale identifier. For more information, see Locales.
host.typedef :uint32, :LCTYPE # Locale information type. For a list, see Locale Information Constants.
host.typedef :uint32, :LGRPID # Language group identifier. For a list, see EnumLanguageGroupLocales.
- host.typedef :pointer, :LMSTR # Pointer to null termiated string of unicode characters
+ host.typedef :pointer, :LMSTR # Pointer to null terminated string of unicode characters
host.typedef :long, :LONG # 32-bit signed integer. The range is -2,147,483,648 through +...647 decimal.
host.typedef :int32, :LONG32 # 32-bit signed integer. The range is -2,147,483,648 through +...647 decimal.
host.typedef :int64, :LONG64 # 64-bit signed integer. The range is –9,223,372,036,854,775,808 through +...807
diff --git a/lib/chef/win32/api/error.rb b/lib/chef/win32/api/error.rb
index 6792fb6b34..fbdf09a4a8 100644
--- a/lib/chef/win32/api/error.rb
+++ b/lib/chef/win32/api/error.rb
@@ -90,6 +90,7 @@ class Chef
ERROR_TOO_MANY_NAMES = 68
ERROR_TOO_MANY_SESS = 69
ERROR_SHARING_PAUSED = 70
+ # cspell:disable-next-line
ERROR_REQ_NOT_ACCEP = 71
ERROR_REDIR_PAUSED = 72
@@ -876,6 +877,7 @@ class Chef
# Flags for LoadLibraryEx
+ # cspell:disable-next-line
DONT_RESOLVE_DLL_REFERENCES = 0x00000001
LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x00000010
LOAD_LIBRARY_AS_DATAFILE = 0x00000002
diff --git a/lib/chef/win32/api/file.rb b/lib/chef/win32/api/file.rb
index 11a18e26d1..eb83e2487d 100644
--- a/lib/chef/win32/api/file.rb
+++ b/lib/chef/win32/api/file.rb
@@ -540,7 +540,7 @@ BOOL WINAPI VerQueryValue(
def file_search_handle(path)
# Workaround for CHEF-4419:
# Make sure paths starting with "/" has a drive letter
- # assigned from the current working diretory.
+ # assigned from the current working directory.
# Note: With CHEF-4427 this issue will be fixed with a
# broader fix to map all the paths starting with "/" to
# SYSTEM_DRIVE on windows.
diff --git a/lib/chef/win32/api/net.rb b/lib/chef/win32/api/net.rb
index 87eac8f79b..374c2e231e 100644
--- a/lib/chef/win32/api/net.rb
+++ b/lib/chef/win32/api/net.rb
@@ -39,6 +39,7 @@ class Chef
UF_ACCOUNTDISABLE = 0x000002
UF_PASSWD_CANT_CHANGE = 0x000040
UF_NORMAL_ACCOUNT = 0x000200
+ # cspell:disable-next-line
UF_DONT_EXPIRE_PASSWD = 0x010000
USE_NOFORCE = 0
diff --git a/lib/chef/win32/mutex.rb b/lib/chef/win32/mutex.rb
index bac94e8166..85f4036c87 100644
--- a/lib/chef/win32/mutex.rb
+++ b/lib/chef/win32/mutex.rb
@@ -95,7 +95,7 @@ if other threads attempt to acquire the mutex.")
@handle = OpenMutexW(SYNCHRONIZE, true, name.to_wstring)
if @handle == 0
- # Mutext doesn't exist so create one.
+ # Mutex doesn't exist so create one.
# In the initial creation of the mutex initial_owner is set to
# false so that mutex will not be acquired until someone calls
# acquire.
diff --git a/lib/chef/win32/net.rb b/lib/chef/win32/net.rb
index fb98276455..f985891c17 100644
--- a/lib/chef/win32/net.rb
+++ b/lib/chef/win32/net.rb
@@ -40,6 +40,7 @@ class Chef
usri3_priv: 0,
usri3_home_dir: nil,
usri3_comment: nil,
+ # cspell:disable-next-line
usri3_flags: UF_SCRIPT | UF_DONT_EXPIRE_PASSWD | UF_NORMAL_ACCOUNT,
usri3_script_path: nil,
usri3_auth_flags: 0,
diff --git a/lib/chef/win32/security/sid.rb b/lib/chef/win32/security/sid.rb
index c89249f5a7..ed6c7bd65d 100644
--- a/lib/chef/win32/security/sid.rb
+++ b/lib/chef/win32/security/sid.rb
@@ -325,7 +325,7 @@ class Chef
Array.new(entriesread.read_long) do |i|
user_info = USER_INFO_3.new(bufptr.read_pointer + i * USER_INFO_3.size)
# Check if the account is the Administrator account
- # RID for the Administrator account is always 500 and it's privilage is set to USER_PRIV_ADMIN
+ # RID for the Administrator account is always 500 and it's privilege is set to USER_PRIV_ADMIN
if user_info[:usri3_user_id] == 500 && user_info[:usri3_priv] == 2 # USER_PRIV_ADMIN (2) - Administrator
admin_account_name = user_info[:usri3_name].read_wstring
break