Skip to content

Commit 8b77a0e

Browse files
Eric LindbladMistuke
Eric Lindblad
authored andcommitted
spelling errors
1 parent 9461e74 commit 8b77a0e

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

System/Win32/Encoding.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
Stability : Provisional
99
Portability : Non-portable (Win32 API)
1010
11-
Enocode/Decode mutibyte charactor using Win32 API.
11+
Enocode/Decode mutibyte character using Win32 API.
1212
-}
1313

1414
module System.Win32.Encoding

System/Win32/File.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,7 @@ foreign import WINDOWS_CCONV unsafe "windows.h DefineDosDeviceW"
882882
----------------------------------------------------------------
883883

884884
-- These functions are very unusual in the Win32 API:
885-
-- They dont return error codes
885+
-- They don't return error codes
886886

887887
foreign import WINDOWS_CCONV unsafe "windows.h AreFileApisANSI"
888888
areFileApisANSI :: IO Bool

System/Win32/HardLink.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
Note: You should worry about file system type when use this module's function in your application:
1414
15-
* NTFS only supprts this functionality.
15+
* NTFS only supports this functionality.
1616
1717
* ReFS doesn't support hard link currently.
1818
-}

System/Win32/Info/Computer.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ type COMPUTER_NAME_FORMAT = UINT
126126
-- Hardware Profiles
127127
----------------------------------------------------------------
128128
{-
129-
-- TODO: Deside HW_PROFILE_INFO type design
129+
-- TODO: Decide HW_PROFILE_INFO type design
130130
131131
type LPHW_PROFILE_INFO = Ptr HW_PROFILE_INFO
132132
@@ -195,7 +195,7 @@ getUserName =
195195
with (fromIntegral maxLength) $ \len -> do
196196
failIfFalse_ "GetComputerName"
197197
$ c_GetUserName buf len
198-
-- GetUserNameW includes NUL charactor.
198+
-- GetUserNameW includes NUL character.
199199
peekTString buf
200200
where
201201
-- This requires Lmcons.h

System/Win32/SimpleMAPI.hsc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ mapiErrors =
107107
, ((#const MAPI_E_TEXT_TOO_LARGE) , "Text too large")
108108
, ((#const MAPI_E_INVALID_SESSION) , "Invalid session")
109109
, ((#const MAPI_E_TYPE_NOT_SUPPORTED) , "Type not supported")
110-
, ((#const MAPI_E_AMBIGUOUS_RECIPIENT) , "Ambigious recipient")
110+
, ((#const MAPI_E_AMBIGUOUS_RECIPIENT) , "Ambiguous recipient")
111111
#ifdef MAPI_E_AMBIGUOUS_RECIP
112-
, ((#const MAPI_E_AMBIGUOUS_RECIP) , "Ambigious recipient")
112+
, ((#const MAPI_E_AMBIGUOUS_RECIP) , "Ambiguous recipient")
113113
#endif
114114
, ((#const MAPI_E_MESSAGE_IN_USE) , "Message in use")
115115
, ((#const MAPI_E_NETWORK_FAILURE) , "Network failure")

System/Win32/SymbolicLink.hsc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1717
* require to use 'Run As Administrator' to run your application.
1818
19-
* or modify your application's manifect file to add
19+
* or modify your application's manifest file to add
2020
\<requestedExecutionLevel level='requireAdministrator' uiAccess='false'/\>.
2121
2222
Starting from Windows 10 version 1703 (Creators Update), after enabling

cbits/dumpBMP.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ void CreateBMPFile(LPCTSTR pszFileName, HBITMAP hBmp, HDC hDC)
6464
// if BitCount != 0, color table will be retrieved
6565
//
6666
bmi.bmiHeader.biSize = 0x28; // GDI need this to work
67-
bmi.bmiHeader.biBitCount = 0; // dont get the color table
67+
bmi.bmiHeader.biBitCount = 0; // don't get the color table
6868
if ((GetDIBits(hDC, hBmp, 0, 0, (LPSTR)NULL, &bmi, DIB_RGB_COLORS)) == 0) {
6969
fprintf(stderr, "GetDIBits failed!");
7070
return;
@@ -81,7 +81,7 @@ void CreateBMPFile(LPCTSTR pszFileName, HBITMAP hBmp, HDC hDC)
8181
}
8282

8383
//
84-
// Note: 24 bits per pixel has no color table. So, we dont have to
84+
// Note: 24 bits per pixel has no color table. So, we don't have to
8585
// allocate memory for retrieving that. Otherwise, we do.
8686
//
8787
pbmi = &bmi; // assume no color table
@@ -113,7 +113,7 @@ void CreateBMPFile(LPCTSTR pszFileName, HBITMAP hBmp, HDC hDC)
113113
goto ErrExit1;
114114
}
115115
//
116-
// Now that weve a bigger chunk of memory, lets copy the Bitmap
116+
// Now that we've a bigger chunk of memory, lets copy the Bitmap
117117
// info header data over
118118
//
119119
pjTmp = (PBYTE)pbmi;

0 commit comments

Comments
 (0)