https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2ea03b5b22c9d22a949ce498276d494b8bdc758b

commit 2ea03b5b22c9d22a949ce498276d494b8bdc758b
Author:     Andriy Shevchenko <nfx...@gmail.com>
AuthorDate: Tue Aug 22 16:20:29 2023 +0300
Commit:     GitHub <nore...@github.com>
CommitDate: Tue Aug 22 16:20:29 2023 +0300

    [REACTOS] Fix typos in comments (#5591)
    
    Fixing typos in code comments enhances code readability and comprehension 
for developers and collaborators.
---
 sdk/lib/rtl/handle.c                       | 2 +-
 sdk/tools/rsym/rsym64.c                    | 2 +-
 sdk/tools/utf16le/utf16le.cpp              | 2 +-
 sdk/tools/winesync/winesync.py             | 2 +-
 subsystems/csr/csrsrv/procsup.c            | 2 +-
 subsystems/csr/csrsrv/status.h             | 4 ++--
 subsystems/mvdm/ntvdm/bios/bios32/bios32.c | 2 +-
 subsystems/mvdm/ntvdm/cpu/cpu.c            | 2 +-
 win32ss/drivers/miniport/vga_new/vga.c     | 4 ++--
 win32ss/gdi/eng/device.c                   | 2 +-
 win32ss/gdi/eng/ldevobj.c                  | 2 +-
 win32ss/gdi/ntgdi/gdipool.c                | 2 +-
 win32ss/reactx/dxg/historic.c              | 2 +-
 win32ss/reactx/ntddraw/d3d.c               | 2 +-
 win32ss/user/ntuser/desktop.c              | 2 +-
 win32ss/user/ntuser/hook.c                 | 2 +-
 win32ss/user/ntuser/hotkey.c               | 4 ++--
 win32ss/user/ntuser/input.c                | 2 +-
 win32ss/user/ntuser/kbdlayout.c            | 2 +-
 win32ss/user/ntuser/windc.c                | 2 +-
 win32ss/user/user32/controls/ghost.c       | 2 +-
 win32ss/user/user32/misc/misc.c            | 2 +-
 22 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/sdk/lib/rtl/handle.c b/sdk/lib/rtl/handle.c
index 5c24199199b..d811f805be5 100644
--- a/sdk/lib/rtl/handle.c
+++ b/sdk/lib/rtl/handle.c
@@ -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 */
diff --git a/sdk/tools/rsym/rsym64.c b/sdk/tools/rsym/rsym64.c
index 80861e4814f..07e5596fa08 100644
--- a/sdk/tools/rsym/rsym64.c
+++ b/sdk/tools/rsym/rsym64.c
@@ -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++)
diff --git a/sdk/tools/utf16le/utf16le.cpp b/sdk/tools/utf16le/utf16le.cpp
index 391205cbba5..cf41bc0f8c7 100644
--- a/sdk/tools/utf16le/utf16le.cpp
+++ b/sdk/tools/utf16le/utf16le.cpp
@@ -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;
diff --git a/sdk/tools/winesync/winesync.py b/sdk/tools/winesync/winesync.py
index cdee060db52..d596a5dd710 100644
--- a/sdk/tools/winesync/winesync.py
+++ b/sdk/tools/winesync/winesync.py
@@ -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
diff --git a/subsystems/csr/csrsrv/procsup.c b/subsystems/csr/csrsrv/procsup.c
index 7abf0d1f6d6..82b5dbbee3c 100644
--- a/subsystems/csr/csrsrv/procsup.c
+++ b/subsystems/csr/csrsrv/procsup.c
@@ -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.
  *
  *--*/
diff --git a/subsystems/csr/csrsrv/status.h b/subsystems/csr/csrsrv/status.h
index c8b922f905a..1eebf18a820 100644
--- a/subsystems/csr/csrsrv/status.h
+++ b/subsystems/csr/csrsrv/status.h
@@ -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,
diff --git a/subsystems/mvdm/ntvdm/bios/bios32/bios32.c 
b/subsystems/mvdm/ntvdm/bios/bios32/bios32.c
index 95b2a31f0cf..a5c06c5295f 100644
--- a/subsystems/mvdm/ntvdm/bios/bios32/bios32.c
+++ b/subsystems/mvdm/ntvdm/bios/bios32/bios32.c
@@ -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;
diff --git a/subsystems/mvdm/ntvdm/cpu/cpu.c b/subsystems/mvdm/ntvdm/cpu/cpu.c
index 2fcbc00dd80..1e0cc03c21a 100644
--- a/subsystems/mvdm/ntvdm/cpu/cpu.c
+++ b/subsystems/mvdm/ntvdm/cpu/cpu.c
@@ -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)
diff --git a/win32ss/drivers/miniport/vga_new/vga.c 
b/win32ss/drivers/miniport/vga_new/vga.c
index 41906254181..1b2da4b548b 100644
--- a/win32ss/drivers/miniport/vga_new/vga.c
+++ b/win32ss/drivers/miniport/vga_new/vga.c
@@ -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.
         //
 
diff --git a/win32ss/gdi/eng/device.c b/win32ss/gdi/eng/device.c
index ed6c00435e2..d9f6b8a9465 100644
--- a/win32ss/gdi/eng/device.c
+++ b/win32ss/gdi/eng/device.c
@@ -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");
diff --git a/win32ss/gdi/eng/ldevobj.c b/win32ss/gdi/eng/ldevobj.c
index 9582c8e943a..b4f13b88d19 100644
--- a/win32ss/gdi/eng/ldevobj.c
+++ b/win32ss/gdi/eng/ldevobj.c
@@ -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 */
diff --git a/win32ss/gdi/ntgdi/gdipool.c b/win32ss/gdi/ntgdi/gdipool.c
index d85972f38dd..9a19cbea1b6 100644
--- a/win32ss/gdi/ntgdi/gdipool.c
+++ b/win32ss/gdi/ntgdi/gdipool.c
@@ -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)
diff --git a/win32ss/reactx/dxg/historic.c b/win32ss/reactx/dxg/historic.c
index a24eee8c634..e25d3196f94 100644
--- a/win32ss/reactx/dxg/historic.c
+++ b/win32ss/reactx/dxg/historic.c
@@ -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
diff --git a/win32ss/reactx/ntddraw/d3d.c b/win32ss/reactx/ntddraw/d3d.c
index 07eb7297829..8eb87a5879f 100644
--- a/win32ss/reactx/ntddraw/d3d.c
+++ b/win32ss/reactx/ntddraw/d3d.c
@@ -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
 *
diff --git a/win32ss/user/ntuser/desktop.c b/win32ss/user/ntuser/desktop.c
index 16b7aa0b8c2..7f200cbfc92 100644
--- a/win32ss/user/ntuser/desktop.c
+++ b/win32ss/user/ntuser/desktop.c
@@ -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 */
diff --git a/win32ss/user/ntuser/hook.c b/win32ss/user/ntuser/hook.c
index 8f82d5b2f46..b9879c01320 100644
--- a/win32ss/user/ntuser/hook.c
+++ b/win32ss/user/ntuser/hook.c
@@ -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;
 
diff --git a/win32ss/user/ntuser/hotkey.c b/win32ss/user/ntuser/hotkey.c
index 93b43d100d8..d2ae2c4766f 100644
--- a/win32ss/user/ntuser/hotkey.c
+++ b/win32ss/user/ntuser/hotkey.c
@@ -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");
 }
 
 /*
diff --git a/win32ss/user/ntuser/input.c b/win32ss/user/ntuser/input.c
index 9c2c69b353c..f153bcf59a6 100644
--- a/win32ss/user/ntuser/input.c
+++ b/win32ss/user/ntuser/input.c
@@ -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)
diff --git a/win32ss/user/ntuser/kbdlayout.c b/win32ss/user/ntuser/kbdlayout.c
index ef66cad9ddc..33875c2cebf 100644
--- a/win32ss/user/ntuser/kbdlayout.c
+++ b/win32ss/user/ntuser/kbdlayout.c
@@ -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
diff --git a/win32ss/user/ntuser/windc.c b/win32ss/user/ntuser/windc.c
index 9a4a7dde211..0f2d2781e30 100644
--- a/win32ss/user/ntuser/windc.c
+++ b/win32ss/user/ntuser/windc.c
@@ -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
diff --git a/win32ss/user/user32/controls/ghost.c 
b/win32ss/user/user32/controls/ghost.c
index 0abc0648731..dac759f3843 100644
--- a/win32ss/user/user32/controls/ghost.c
+++ b/win32ss/user/user32/controls/ghost.c
@@ -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
diff --git a/win32ss/user/user32/misc/misc.c b/win32ss/user/user32/misc/misc.c
index 621ec567f8e..d834697b6a1 100644
--- a/win32ss/user/user32/misc/misc.c
+++ b/win32ss/user/user32/misc/misc.c
@@ -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

Reply via email to