Skip to content

Commit

Permalink
[REACTOS] Fix typos in comments (reactos#5591)
Browse files Browse the repository at this point in the history
Fixing typos in code comments enhances code readability and comprehension for developers and collaborators.
  • Loading branch information
nfxpnk authored Aug 22, 2023
1 parent a2d8e46 commit 2ea03b5
Show file tree
Hide file tree
Showing 22 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion sdk/lib/rtl/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ RtlAllocateHandle(
/* Check if we are out of free handles entries */
if (HandleTable->FreeHandles == NULL)
{
/* Check if we don't have uncomitted handle entries yet */
/* Check if we don't have uncommitted handle entries yet */
if (HandleTable->UnCommittedHandles == NULL)
{
/* Use the maximum number of handle entries */
Expand Down
2 changes: 1 addition & 1 deletion sdk/tools/rsym/rsym64.c
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,7 @@ ParsePEHeaders(PFILE_INFO File)
File->UsedSections = 0;
File->eh_frame.idx = -1;

/* Allocate array of chars, specifiying whether to copy the section */
/* Allocate array of chars, specifying whether to copy the section */
File->UseSection = malloc(File->AllSections);

for (i = 0; i < File->AllSections; i++)
Expand Down
2 changes: 1 addition & 1 deletion sdk/tools/utf16le/utf16le.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class utf_converter
wchar_t ret = (wchar_t)-1;
switch (encoding)
{
case detect: // if still unknwon
case detect: // if still unknown
encoding = utf8; // assume utf8 as default
case utf8:
unsigned char c, tmp;
Expand Down
2 changes: 1 addition & 1 deletion sdk/tools/winesync/winesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def sync_wine_commit(self, wine_commit, in_staging, staging_patch_index):
return True, warning_message

def revert_staged_patchset(self):
# revert all of this in one commmit
# revert all of this in one commit
staged_patch_dir_path = os.path.join(self.reactos_src, self.staged_patch_dir)
if not os.path.isdir(staged_patch_dir_path):
return True
Expand Down
2 changes: 1 addition & 1 deletion subsystems/csr/csrsrv/procsup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ CsrLockProcessByClientId(IN HANDLE Pid,
* @return TRUE if the reversion was succesful, FALSE otherwise.
*
* @remarks Impersonation can be recursive; as such, the impersonation token
* will only be deleted once the CSR Thread's impersonaton count
* will only be deleted once the CSR Thread's impersonation count
* has reached zero.
*
*--*/
Expand Down
4 changes: 2 additions & 2 deletions subsystems/csr/csrsrv/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* up the DosDevices Object Directory, and initializing each component.
*
* procsup.c - Handles all internal functions dealing with the CSR Process Object,
* including de/allocation, de/referencing, un/locking, prority, and
* including de/allocation, de/referencing, un/locking, priority, and
* lookups. Also handles all external APIs which touch the CSR Process Object.
*
* server.c - Handles all internal functions related to loading and managing Server
Expand All @@ -24,7 +24,7 @@
*
* session.c - Handles all internal functions dealing with the CSR Session Object,
* including de/allocation, de/referencing, and un/locking. Holds the SB API
* Dispatch/Name Tables and the public CsrSv API Interface for commmunication
* Dispatch/Name Tables and the public CsrSv API Interface for communication
* with the Session Manager.
*
* thredsup.c - Handles all internal functions dealing with the CSR Thread Object,
Expand Down
2 changes: 1 addition & 1 deletion subsystems/mvdm/ntvdm/bios/bios32/bios32.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static VOID WINAPI BiosMiscService(LPWORD Stack)
case 0xC2:
{
// FIXME: Reenable this call when we understand why
// our included mouse driver doesn't correctly reeanble
// our included mouse driver doesn't correctly reenable
// mouse reporting!
// BiosMousePs2Interface(Stack);
// break;
Expand Down
2 changes: 1 addition & 1 deletion subsystems/mvdm/ntvdm/cpu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ LONG CpuExceptionFilter(IN PEXCEPTION_POINTERS ExceptionInfo)

/*
* Check whether the access exception was done inside the virtual memory space
* (caused by an emulated app) or outside (casued by a bug in ourselves).
* (caused by an emulated app) or outside (caused by a bug in ourselves).
*/
if (Address < (ULONG_PTR)BaseAddress ||
Address >= (ULONG_PTR)BaseAddress + MAX_ADDRESS)
Expand Down
4 changes: 2 additions & 2 deletions win32ss/drivers/miniport/vga_new/vga.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,10 @@ Return Value:
// eVb: 1.13 [END]

//
// Always return succcess since settings the text mode will fail on
// Always return success since settings the text mode will fail on
// non-x86.
//
// Also, failiure to set the text mode is not fatal in any way, since
// Also, failure to set the text mode is not fatal in any way, since
// this operation must be followed by another set mode operation.
//

Expand Down
2 changes: 1 addition & 1 deletion win32ss/gdi/eng/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ EngpUpdateGraphicsDeviceList(VOID)
ERR("VGA adapter = %lu\n", iVGACompatible);
}

/* Get the maximum mumber of adapters */
/* Get the maximum number of adapters */
if (!RegReadDWORD(hkey, L"MaxObjectNumber", &ulMaxObjectNumber))
{
ERR("Could not read MaxObjectNumber, defaulting to 0.\n");
Expand Down
2 changes: 1 addition & 1 deletion win32ss/gdi/eng/ldevobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ LDEVOBJ_pLoadDriver(
/* Check if the ldev is associated with a file */
if (pldev->pGdiDriverInfo)
{
/* Check for match (case insensative) */
/* Check for match (case insensitive) */
if (RtlEqualUnicodeString(&pldev->pGdiDriverInfo->DriverName, &strDriverName, TRUE))
{
/* Image found in LDEV list */
Expand Down
2 changes: 1 addition & 1 deletion win32ss/gdi/ntgdi/gdipool.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ GdiPoolAllocate(
cjOffset = ulIndex * pPool->cjAllocSize;
pvAlloc = (PVOID)((ULONG_PTR)pSection->pvBaseAddress + cjOffset);

/* Check if memory is comitted */
/* Check if memory is committed */
ulPageBit = 1 << (cjOffset / PAGE_SIZE);
ulPageBit |= 1 << ((cjOffset + pPool->cjAllocSize - 1) / PAGE_SIZE);
if ((pSection->ulCommitBitmap & ulPageBit) != ulPageBit)
Expand Down
2 changes: 1 addition & 1 deletion win32ss/reactx/dxg/historic.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* The function DxDxgGenericThunk redirects DirectX calls to other functions.
*
* @param ULONG_PTR ulIndex
* The functions we want redirct
* The functions we want to redirect
*
* @param ULONG_PTR ulHandle
* Unknown
Expand Down
2 changes: 1 addition & 1 deletion win32ss/reactx/ntddraw/d3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ NtGdiD3dContextCreate(HANDLE hDirectDrawLocal,
* @name NtGdiD3dContextDestroy
* @implemented
*
* The Function NtGdiD3dContextDestroy destorys the context data we got from NtGdiD3dContextCreate
* The Function NtGdiD3dContextDestroy destroys the context data we got from NtGdiD3dContextCreate
* It redirects to dxg.sys in windows XP/2003, dxkrnl.sys in vista and is fully implemented
* in win32k.sys in windows 2000 and below
*
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/ntuser/desktop.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ IntDesktopObjectDelete(
if (pdesk->spwndMessage)
co_UserDestroyWindow(pdesk->spwndMessage);

/* Remove the desktop from the window station's list of associcated desktops */
/* Remove the desktop from the window station's list of associated desktops */
RemoveEntryList(&pdesk->ListEntry);

/* Free the heap */
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/ntuser/hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ IntLoadHookModule(int iHookID, HHOOK hHook, BOOL Unload)
{
/* A callback in user mode can trigger UserLoadApiHook to be called and
as a result IntLoadHookModule will be called recursively.
To solve this we set the flag that means that the appliaction has
To solve this we set the flag that means that the application has
loaded the api hook before the callback and in case of error we remove it */
ppi->W32PF_flags |= W32PF_APIHOOKLOADED;

Expand Down
4 changes: 2 additions & 2 deletions win32ss/user/ntuser/hotkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

/*
* FIXME: Hotkey notifications are triggered by keyboard input (physical or programatically)
* FIXME: Hotkey notifications are triggered by keyboard input (physical or programmatically)
* and since only desktops on WinSta0 can receive input in seems very wrong to allow
* windows/threads on destops not belonging to WinSta0 to set hotkeys (receive notifications).
* -- Gunnar
Expand Down Expand Up @@ -52,7 +52,7 @@ StartDebugHotKeys(VOID)
}
UserRegisterHotKey(PWND_BOTTOM, IDHK_SHIFTF12, MOD_SHIFT, vk);
UserRegisterHotKey(PWND_BOTTOM, IDHK_F12, 0, vk);
TRACE("Start up the debugger hotkeys!! If you see this you eneabled debugprints. Congrats!\n");
TRACE("Start up the debugger hotkeys!! If you see this you enabled debugprints. Congrats!\n");
}

/*
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/ntuser/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ IntLastInputTick(BOOL bUpdate)
/*
* DoTheScreenSaver
*
* Check if scrensaver should be started and sends message to SAS window
* Check if screensaver should be started and sends message to SAS window
*/
VOID FASTCALL
DoTheScreenSaver(VOID)
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/ntuser/kbdlayout.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ IntReorderKeyboardLayouts(
/*
* UserSetDefaultInputLang
*
* Sets default kyboard layout for system. Called from UserSystemParametersInfo.
* Sets default keyboard layout for system. Called from UserSystemParametersInfo.
*/
BOOL
NTAPI
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/ntuser/windc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ NtUserGetDC(HWND hWnd)
* Select logical palette into device context.
* \param hDC handle to the device context
* \param hpal handle to the palette
* \param ForceBackground If this value is FALSE the logical palette will be copied to the device palette only when the applicatioon
* \param ForceBackground If this value is FALSE the logical palette will be copied to the device palette only when the application
* is in the foreground. If this value is TRUE then map the colors in the logical palette to the device
* palette colors in the best way.
* \return old palette
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/user32/controls/ghost.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ Ghost_OnNCPaint(HWND hwnd, HRGN hrgn, BOOL bUnicode)
{
HDC hdc;

// do the default behaivour
// do the default behaviour
if (bUnicode)
DefWindowProcW(hwnd, WM_NCPAINT, (WPARAM)hrgn, 0);
else
Expand Down
2 changes: 1 addition & 1 deletion win32ss/user/user32/misc/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ GetW32ThreadInfo(VOID)
* 2) pSecurityInfo - type of information to retrieve
* 3) pSecurityDescriptor - buffer which receives descriptor
* 4) dwLength - size, in bytes, of buffer 'pSecurityDescriptor'
* 5) pdwLengthNeeded - reseives actual size of descriptor
* 5) pdwLengthNeeded - receives actual size of the descriptor
*
* Return Vaules:
* TRUE on success
Expand Down

0 comments on commit 2ea03b5

Please sign in to comment.