[REACTOS] Fix typos in comments (#5591)

Fixing typos in code comments enhances code readability and comprehension for developers and collaborators.
This commit is contained in:
Andriy Shevchenko 2023-08-22 16:20:29 +03:00 committed by GitHub
parent a2d8e464c8
commit 2ea03b5b22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 25 additions and 25 deletions

View file

@ -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 */

View file

@ -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++)

View file

@ -180,7 +180,7 @@ public:
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;

View file

@ -259,7 +259,7 @@ class wine_sync:
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

View file

@ -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.
*
*--*/

View file

@ -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
@ -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,

View file

@ -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;

View file

@ -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)

View file

@ -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.
//

View file

@ -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");

View file

@ -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 */

View file

@ -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)

View file

@ -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

View file

@ -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
*

View file

@ -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 */

View file

@ -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;

View file

@ -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
@ -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");
}
/*

View file

@ -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)

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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