From 8b77a0ebecc571205b9ced809ce4847b54ed7c74 Mon Sep 17 00:00:00 2001 From: Eric Lindblad Date: Mon, 18 Apr 2022 20:12:20 -0500 Subject: [PATCH] spelling errors --- System/Win32/Encoding.hs | 2 +- System/Win32/File.hsc | 2 +- System/Win32/HardLink.hs | 2 +- System/Win32/Info/Computer.hsc | 4 ++-- System/Win32/SimpleMAPI.hsc | 4 ++-- System/Win32/SymbolicLink.hsc | 2 +- cbits/dumpBMP.c | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/System/Win32/Encoding.hs b/System/Win32/Encoding.hs index db77f8dc..02083120 100644 --- a/System/Win32/Encoding.hs +++ b/System/Win32/Encoding.hs @@ -8,7 +8,7 @@ Stability : Provisional Portability : Non-portable (Win32 API) - Enocode/Decode mutibyte charactor using Win32 API. + Enocode/Decode mutibyte character using Win32 API. -} module System.Win32.Encoding diff --git a/System/Win32/File.hsc b/System/Win32/File.hsc index 264fe219..69e19ec7 100644 --- a/System/Win32/File.hsc +++ b/System/Win32/File.hsc @@ -882,7 +882,7 @@ foreign import WINDOWS_CCONV unsafe "windows.h DefineDosDeviceW" ---------------------------------------------------------------- -- These functions are very unusual in the Win32 API: --- They dont return error codes +-- They don't return error codes foreign import WINDOWS_CCONV unsafe "windows.h AreFileApisANSI" areFileApisANSI :: IO Bool diff --git a/System/Win32/HardLink.hs b/System/Win32/HardLink.hs index f72f9915..2b3275d5 100644 --- a/System/Win32/HardLink.hs +++ b/System/Win32/HardLink.hs @@ -12,7 +12,7 @@ Note: You should worry about file system type when use this module's function in your application: - * NTFS only supprts this functionality. + * NTFS only supports this functionality. * ReFS doesn't support hard link currently. -} diff --git a/System/Win32/Info/Computer.hsc b/System/Win32/Info/Computer.hsc index e3f592e1..3c2c7cd5 100644 --- a/System/Win32/Info/Computer.hsc +++ b/System/Win32/Info/Computer.hsc @@ -126,7 +126,7 @@ type COMPUTER_NAME_FORMAT = UINT -- Hardware Profiles ---------------------------------------------------------------- {- --- TODO: Deside HW_PROFILE_INFO type design +-- TODO: Decide HW_PROFILE_INFO type design type LPHW_PROFILE_INFO = Ptr HW_PROFILE_INFO @@ -195,7 +195,7 @@ getUserName = with (fromIntegral maxLength) $ \len -> do failIfFalse_ "GetComputerName" $ c_GetUserName buf len - -- GetUserNameW includes NUL charactor. + -- GetUserNameW includes NUL character. peekTString buf where -- This requires Lmcons.h diff --git a/System/Win32/SimpleMAPI.hsc b/System/Win32/SimpleMAPI.hsc index 573cac07..0082d98b 100644 --- a/System/Win32/SimpleMAPI.hsc +++ b/System/Win32/SimpleMAPI.hsc @@ -107,9 +107,9 @@ mapiErrors = , ((#const MAPI_E_TEXT_TOO_LARGE) , "Text too large") , ((#const MAPI_E_INVALID_SESSION) , "Invalid session") , ((#const MAPI_E_TYPE_NOT_SUPPORTED) , "Type not supported") - , ((#const MAPI_E_AMBIGUOUS_RECIPIENT) , "Ambigious recipient") + , ((#const MAPI_E_AMBIGUOUS_RECIPIENT) , "Ambiguous recipient") #ifdef MAPI_E_AMBIGUOUS_RECIP - , ((#const MAPI_E_AMBIGUOUS_RECIP) , "Ambigious recipient") + , ((#const MAPI_E_AMBIGUOUS_RECIP) , "Ambiguous recipient") #endif , ((#const MAPI_E_MESSAGE_IN_USE) , "Message in use") , ((#const MAPI_E_NETWORK_FAILURE) , "Network failure") diff --git a/System/Win32/SymbolicLink.hsc b/System/Win32/SymbolicLink.hsc index a0522ed7..e7867e66 100644 --- a/System/Win32/SymbolicLink.hsc +++ b/System/Win32/SymbolicLink.hsc @@ -16,7 +16,7 @@ * require to use 'Run As Administrator' to run your application. - * or modify your application's manifect file to add + * or modify your application's manifest file to add \. Starting from Windows 10 version 1703 (Creators Update), after enabling diff --git a/cbits/dumpBMP.c b/cbits/dumpBMP.c index 4137f2f4..19dce1f7 100644 --- a/cbits/dumpBMP.c +++ b/cbits/dumpBMP.c @@ -64,7 +64,7 @@ void CreateBMPFile(LPCTSTR pszFileName, HBITMAP hBmp, HDC hDC) // if BitCount != 0, color table will be retrieved // bmi.bmiHeader.biSize = 0x28; // GDI need this to work - bmi.bmiHeader.biBitCount = 0; // dont get the color table + bmi.bmiHeader.biBitCount = 0; // don't get the color table if ((GetDIBits(hDC, hBmp, 0, 0, (LPSTR)NULL, &bmi, DIB_RGB_COLORS)) == 0) { fprintf(stderr, "GetDIBits failed!"); return; @@ -81,7 +81,7 @@ void CreateBMPFile(LPCTSTR pszFileName, HBITMAP hBmp, HDC hDC) } // - // Note: 24 bits per pixel has no color table. So, we dont have to + // Note: 24 bits per pixel has no color table. So, we don't have to // allocate memory for retrieving that. Otherwise, we do. // pbmi = &bmi; // assume no color table @@ -113,7 +113,7 @@ void CreateBMPFile(LPCTSTR pszFileName, HBITMAP hBmp, HDC hDC) goto ErrExit1; } // - // Now that weve a bigger chunk of memory, lets copy the Bitmap + // Now that we've a bigger chunk of memory, lets copy the Bitmap // info header data over // pjTmp = (PBYTE)pbmi;