[DRIVERS] Spelling fixes by Josh Soref. CORE-12286
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 13 Nov 2016 15:31:39 +0000 (15:31 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 13 Nov 2016 15:31:39 +0000 (15:31 +0000)
svn path=/trunk/; revision=73226

200 files changed:
reactos/drivers/base/beep/beep.c
reactos/drivers/base/bootvid/arm/bootvid.c
reactos/drivers/base/bootvid/i386/bootvid.c
reactos/drivers/base/bootvid/i386/vga.c
reactos/drivers/base/kdcom/kddll.c
reactos/drivers/base/kdcom/kdserial.c
reactos/drivers/base/kdgdb/gdb_input.c
reactos/drivers/base/kdgdb/kdgdb.h
reactos/drivers/bus/acpi/busmgr/bus.c
reactos/drivers/bus/acpi/busmgr/power.c
reactos/drivers/bus/acpi/busmgr/system.c
reactos/drivers/bus/acpi/busmgr/utils.c
reactos/drivers/bus/acpi/buspdo.c
reactos/drivers/bus/acpi/cmbatt/cmbatt.c
reactos/drivers/bus/acpi/cmbatt/cmbatt.h
reactos/drivers/bus/acpi/cmbatt/cmbpnp.c
reactos/drivers/bus/acpi/include/acpi_bus.h
reactos/drivers/bus/pci/pcidef.h
reactos/drivers/bus/pcix/enum.c
reactos/drivers/bus/pcix/hookhal.c
reactos/drivers/bus/pcix/intrface/intrface.c
reactos/drivers/bus/pcix/pci/ppbridge.c
reactos/drivers/bus/pcix/power.c
reactos/drivers/bus/pcix/utils.c
reactos/drivers/filesystems/cdfs/fcb.c
reactos/drivers/filesystems/cdfs_new/allocsup.c
reactos/drivers/filesystems/cdfs_new/cd.h
reactos/drivers/filesystems/cdfs_new/cddata.h
reactos/drivers/filesystems/cdfs_new/cdstruc.h
reactos/drivers/filesystems/cdfs_new/close.c
reactos/drivers/filesystems/cdfs_new/deviosup.c
reactos/drivers/filesystems/cdfs_new/dirctrl.c
reactos/drivers/filesystems/cdfs_new/dirsup.c
reactos/drivers/filesystems/cdfs_new/fsctrl.c
reactos/drivers/filesystems/cdfs_new/namesup.c
reactos/drivers/filesystems/cdfs_new/pathsup.c
reactos/drivers/filesystems/cdfs_new/pnp.c
reactos/drivers/filesystems/cdfs_new/resrcsup.c
reactos/drivers/filesystems/cdfs_new/strucsup.c
reactos/drivers/filesystems/cdfs_new/verfysup.c
reactos/drivers/filesystems/cdfs_new/volinfo.c
reactos/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff
reactos/drivers/filesystems/cdfs_new/workque.c
reactos/drivers/filesystems/fastfat/create.c
reactos/drivers/filesystems/fastfat/direntry.c
reactos/drivers/filesystems/fastfat/dirwr.c
reactos/drivers/filesystems/fastfat/fsctl.c
reactos/drivers/filesystems/fastfat/vfat.h
reactos/drivers/filesystems/fs_rec/fs_rec.c
reactos/drivers/filesystems/fs_rec/reiserfs.h
reactos/drivers/filesystems/mup/mup.c
reactos/drivers/filesystems/ntfs/create.c
reactos/drivers/filesystems/ntfs/fcb.c
reactos/drivers/filesystems/ntfs/ntfs.h
reactos/drivers/filters/fltmgr/Interface.c
reactos/drivers/filters/fltmgr/fltmgr.h
reactos/drivers/filters/mountmgr/database.c
reactos/drivers/filters/mountmgr/device.c
reactos/drivers/filters/mountmgr/mountmgr.c
reactos/drivers/filters/mountmgr/notify.c
reactos/drivers/filters/mountmgr/symlink.c
reactos/drivers/hid/hidclass/fdo.c
reactos/drivers/input/i8042prt/keyboard.c
reactos/drivers/input/i8042prt/misc.c
reactos/drivers/input/kbdclass/kbdclass.c
reactos/drivers/input/kbdclass/misc.c
reactos/drivers/input/mouclass/misc.c
reactos/drivers/input/mouclass/mouclass.c
reactos/drivers/input/sermouse/misc.c
reactos/drivers/input/sermouse/sermouse.txt
reactos/drivers/ksfilter/ks/api.c
reactos/drivers/ksfilter/ks/clocks.c
reactos/drivers/ksfilter/ks/filter.c
reactos/drivers/ksfilter/ks/irp.c
reactos/drivers/ksfilter/ks/pin.c
reactos/drivers/ksfilter/ks/worker.c
reactos/drivers/multimedia/audio/sound/mixer.h
reactos/drivers/multimedia/audio/sound/wave.c
reactos/drivers/network/afd/afd/read.c
reactos/drivers/network/afd/afd/write.c
reactos/drivers/network/dd/ne2000/include/ne2000.h
reactos/drivers/network/dd/ne2000/ne2000/main.c
reactos/drivers/network/dd/pcnet/pcnet.c
reactos/drivers/network/dd/pcnet/pcnet.h
reactos/drivers/network/dd/pcnet/pcnethw.h
reactos/drivers/network/dd/pcnet/requests.c
reactos/drivers/network/dd/rtl8139/rtlhw.h
reactos/drivers/network/lan/lan/lan.c
reactos/drivers/network/lan/lan/routines.c
reactos/drivers/network/ndis/ndis/buffer.c
reactos/drivers/network/ndis/ndis/config.c
reactos/drivers/network/ndis/ndis/efilter.c
reactos/drivers/network/ndis/ndis/io.c
reactos/drivers/network/ndis/ndis/main.c
reactos/drivers/network/ndis/ndis/miniport.c
reactos/drivers/network/ndis/ndis/protocol.c
reactos/drivers/network/ndis/ndis/time.c
reactos/drivers/network/tcpip/datalink/lan.c
reactos/drivers/network/tcpip/include/linux.h
reactos/drivers/network/tcpip/include/tcpcore.h
reactos/drivers/network/tcpip/include/tcpdef.h
reactos/drivers/network/tcpip/include/ticonsts.h
reactos/drivers/network/tcpip/include/titypes.h
reactos/drivers/network/tcpip/tcpip/buffer.c
reactos/drivers/network/tcpip/tcpip/dispatch.c
reactos/drivers/network/tcpip/tcpip/mockbuffer.c
reactos/drivers/network/tcpip/tests/tests/ipreceive.c
reactos/drivers/network/tdi/tdi/obsolete.c
reactos/drivers/parallel/parallel/parallel.h
reactos/drivers/parallel/parport/fdo.c
reactos/drivers/sac/driver/concmd.c
reactos/drivers/sac/driver/conmgr.c
reactos/drivers/sac/driver/dispatch.c
reactos/drivers/sac/driver/memory.c
reactos/drivers/sac/driver/sacdrv.h
reactos/drivers/sac/driver/util.c
reactos/drivers/sac/driver/vtutf8chan.c
reactos/drivers/serial/serenum/misc.c
reactos/drivers/serial/serial/misc.c
reactos/drivers/storage/class/cdrom/cdrom.c
reactos/drivers/storage/class/cdrom_new/cdrom.c
reactos/drivers/storage/class/cdrom_new/cdrom.h
reactos/drivers/storage/class/cdrom_new/cdrom.inf
reactos/drivers/storage/class/cdrom_new/data.c
reactos/drivers/storage/class/cdrom_new/mmc.c
reactos/drivers/storage/class/class2/class2.c
reactos/drivers/storage/class/disk/disk.c
reactos/drivers/storage/class/disk_new/disk.c
reactos/drivers/storage/class/disk_new/disk.h
reactos/drivers/storage/class/disk_new/diskwmi.c
reactos/drivers/storage/class/disk_new/geometry.c
reactos/drivers/storage/class/disk_new/part.c
reactos/drivers/storage/class/disk_new/pnp.c
reactos/drivers/storage/classpnp/autorun.c
reactos/drivers/storage/classpnp/class.c
reactos/drivers/storage/classpnp/classp.h
reactos/drivers/storage/classpnp/classwmi.c
reactos/drivers/storage/classpnp/lock.c
reactos/drivers/storage/classpnp/obsolete.c
reactos/drivers/storage/classpnp/power.c
reactos/drivers/storage/classpnp/utils.c
reactos/drivers/storage/fdc/fdc/fdc.rc
reactos/drivers/storage/fdc/fdc/fdo.c
reactos/drivers/storage/floppy/floppy.c
reactos/drivers/storage/floppy/floppy.rc
reactos/drivers/storage/floppy/hardware.c
reactos/drivers/storage/floppy/hardware.h
reactos/drivers/storage/floppy/ioctl.c
reactos/drivers/storage/floppy/readwrite.c
reactos/drivers/storage/ide/atapi/atapi.c
reactos/drivers/storage/ide/pciidex/misc.c
reactos/drivers/storage/inc/ide.h
reactos/drivers/storage/inc/rbc.h
reactos/drivers/storage/port/buslogic/BusLogic958.c
reactos/drivers/storage/port/buslogic/BusLogic958.h
reactos/drivers/storage/port/buslogic/Log.c
reactos/drivers/storage/port/buslogic/wmi.c
reactos/drivers/storage/scsiport/scsiport.c
reactos/drivers/usb/usbccgp/descriptor.c
reactos/drivers/usb/usbccgp/fdo.c
reactos/drivers/usb/usbd/usbd.c
reactos/drivers/usb/usbehci/hardware.cpp
reactos/drivers/usb/usbehci/usb_queue.cpp
reactos/drivers/usb/usbehci/usb_request.cpp
reactos/drivers/usb/usbhub/misc.c
reactos/drivers/usb/usbhub/pdo.c
reactos/drivers/usb/usbohci/hardware.cpp
reactos/drivers/usb/usbohci/usb_queue.cpp
reactos/drivers/usb/usbohci/usb_request.cpp
reactos/drivers/usb/usbstor/descriptor.c
reactos/drivers/usb/usbstor/disk.c
reactos/drivers/usb/usbstor/fdo.c
reactos/drivers/usb/usbstor/pdo.c
reactos/drivers/usb/usbstor/usbstor.h
reactos/drivers/usb/usbuhci/hardware.cpp
reactos/drivers/usb/usbuhci/hardware.h
reactos/drivers/usb/usbuhci/interfaces.h
reactos/drivers/wdm/audio/backpln/audio_test/audio_test.c
reactos/drivers/wdm/audio/backpln/portcls/dma_slave.cpp
reactos/drivers/wdm/audio/backpln/portcls/miniport_dmus.cpp
reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp
reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp
reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp
reactos/drivers/wdm/audio/backpln/portcls/port_dmus.cpp
reactos/drivers/wdm/audio/backpln/portcls/port_topology.cpp
reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp
reactos/drivers/wdm/audio/backpln/portcls/port_wavert.cpp
reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp
reactos/drivers/wdm/audio/backpln/portcls/service_group.cpp
reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp
reactos/drivers/wdm/audio/drivers/CMIDriver/CHANGELOG.txt
reactos/drivers/wdm/audio/drm/drmk/stubs.cpp
reactos/drivers/wdm/audio/hdaudbus/businterface.cpp
reactos/drivers/wdm/audio/hdaudbus/fdo.cpp
reactos/drivers/wdm/audio/legacy/wdmaud/control.c
reactos/drivers/wdm/audio/legacy/wdmaud/interface.h
reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c
reactos/drivers/wdm/audio/sysaudio/control.c
reactos/drivers/wdm/audio/sysaudio/main.c
reactos/drivers/wmi/wmilib.c

index 7eb64c2..e5e8e42 100644 (file)
@@ -130,7 +130,7 @@ BeepCancel(IN PDEVICE_OBJECT DeviceObject,
     }
     else
     {
-        /* Otherwise, remove the packet from the queue and relelase the lock */
+        /* Otherwise, remove the packet from the queue and release the lock */
         KeRemoveEntryDeviceQueue(&DeviceObject->DeviceQueue,
                                  &Irp->Tail.Overlay.DeviceQueueEntry);
         IoReleaseCancelSpinLock(Irp->CancelIrql);
@@ -234,7 +234,7 @@ BeepDeviceControl(IN PDEVICE_OBJECT DeviceObject,
         }
         else if ((BeepParam->Frequency != 0) && !(BeepParam->Duration))
         {
-            /* No duration, return imemdiately */
+            /* No duration, return immediately */
             Status = STATUS_SUCCESS;
         }
         else
index 4ae37a5..16ba24c 100644 (file)
@@ -447,7 +447,7 @@ VidDisplayString(IN PUCHAR String)
             /* Update current X */
             VidpCurrentX = VidpScrollRegion[0];
 
-            /* Preseve the current row */
+            /* Preserve the current row */
             PreserveRow(VidpCurrentY, TopDelta, FALSE);
         }
         else if (*String == '\r')
index 280c2c5..333e5de 100644 (file)
@@ -385,7 +385,7 @@ VidInitialize(IN BOOLEAN SetMode)
                                           TRUE);
     if (!Result) return FALSE;
 
-    /* Loop trying to find posssible VGA base addresses */
+    /* Loop trying to find possible VGA base addresses */
     while (TRUE)
     {
         /* See if this is I/O Space, which we need to map */
index 3efed45..dcb0283 100644 (file)
@@ -515,7 +515,7 @@ RleBitBlt(IN ULONG Left,
             /* Check if we've gone past the edge */
             if ((x + RleValue) > (Width + Left))
             {
-                /* Fixeup the pixel value */
+                /* Fixup the pixel value */
                 RleValue = Left - x + Width;
             }
 
@@ -526,7 +526,7 @@ RleBitBlt(IN ULONG Left,
             Color = NewRleValue >> 4;
             Color2 = NewRleValue & 0xF;
 
-            /* Increase buffer positition */
+            /* Increase buffer position */
             Buffer++;
 
             /* Check if we need to do a fill */
@@ -560,7 +560,7 @@ RleBitBlt(IN ULONG Left,
             /* Check if there is any value at all */
             if (RleValue)
             {
-                /* Set the pixel and increase posititon */
+                /* Set the pixel and increase position */
                 SetPixel(x, YDelta, (UCHAR)Color);
                 x++;
             }
index 1779ef9..7bae16d 100644 (file)
@@ -237,7 +237,7 @@ KdReceivePacket(
         /* Calculate the length of the message data */
         *DataLength = Packet.ByteCount - MessageHeader->Length;
 
-        /* Shall we receive messsage data? */
+        /* Shall we receive message data? */
         if (MessageData)
         {
             /* Set the length of the message data */
@@ -349,7 +349,7 @@ KdSendPacket(
         /* Send the message header */
         KdpSendBuffer(MessageHeader->Buffer, MessageHeader->Length);
 
-        /* If we have meesage data, also send it */
+        /* If we have message data, also send it */
         if (MessageData)
         {
             KdpSendBuffer(MessageData->Buffer, MessageData->Length);
index 274f7c3..35f311d 100644 (file)
@@ -36,7 +36,7 @@ KdpSendBuffer(
  * \param Buffer Pointer to a buffer that receives the data.
  * \param Size Size of data to receive in bytes.
  * \return KDP_PACKET_RECEIVED if successful.
- *         KDP_PACKET_TIMEOUT if the receice timed out.
+ *         KDP_PACKET_TIMEOUT if the receive timed out.
  */
 KDP_STATUS
 NTAPI
@@ -64,7 +64,7 @@ KdpReceiveBuffer(
 
 /******************************************************************************
  * \name KdpReceivePacketLeader
- * \brief Receives a packet leadr from the KD port.
+ * \brief Receives a packet leader from the KD port.
  * \param PacketLeader Pointer to an ULONG that receives the packet leader.
  * \return KDP_PACKET_RECEIVED if successful.
  *         KDP_PACKET_TIMEOUT if the receive timed out.
index c6e5ff9..9331dbd 100644 (file)
@@ -303,7 +303,7 @@ handle_gdb_query(void)
 
     if (strncmp(gdb_input, "qOffsets", 8) == 0)
     {
-        /* We load ntoskrnl at 0x80800000 while compiling it at 0x00800000 base adress */
+        /* We load ntoskrnl at 0x80800000 while compiling it at 0x00800000 base address */
         return send_gdb_packet("TextSeg=80000000");
     }
 
index 180320f..d2f4cd1 100644 (file)
@@ -106,7 +106,7 @@ extern LIST_ENTRY* ProcessListHead;
 extern LIST_ENTRY* ModuleListHead;
 extern KDP_SEND_HANDLER KdpSendPacketHandler;
 extern KDP_MANIPULATESTATE_HANDLER KdpManipulateStateHandler;
-/* Commone ManipulateState handlers */
+/* Common ManipulateState handlers */
 extern KDSTATUS ContinueManipulateStateHandler(_Out_ DBGKD_MANIPULATE_STATE64* State, _Out_ PSTRING MessageData, _Out_ PULONG MessageLength, _Inout_ PKD_CONTEXT KdContext);
 extern KDSTATUS SetContextManipulateHandler(_Out_ DBGKD_MANIPULATE_STATE64* State, _Out_ PSTRING MessageData, _Out_ PULONG MessageLength, _Inout_ PKD_CONTEXT KdContext);
 extern PEPROCESS TheIdleProcess;
index b0b6a4d..7873858 100644 (file)
@@ -303,7 +303,7 @@ acpi_bus_set_power (
         * Transition Power
         * ----------------
         * On transitions to a high-powered state we first apply power (via
-        * power resources) then evalute _PSx.  Conversly for transitions to
+        * power resources) then evalute _PSx.  Conversely for transitions to
         * a lower-powered state.
         */
        if (state < device->power.state) {
@@ -1120,7 +1120,7 @@ acpi_bus_get_flags (
        if (ACPI_SUCCESS(status))
                device->flags.power_manageable = 1;
 
-       /* TBD: Peformance management */
+       /* TBD: Performance management */
 
        return_VALUE(0);
 }
index f810e91..01fd576 100644 (file)
@@ -308,12 +308,12 @@ int acpi_device_sleep_wake(struct acpi_device *dev,
        /*
         * Try to execute _DSW first.
         *
-        * Three agruments are needed for the _DSW object:
+        * Three arguments are needed for the _DSW object:
         * Argument 0: enable/disable the wake capabilities
         * Argument 1: target system state
         * Argument 2: target device state
         * When _DSW object is called to disable the wake capabilities, maybe
-        * the first argument is filled. The values of the other two agruments
+        * the first argument is filled. The values of the other two arguments
         * are meaningless.
         */
        in_arg[0].Type = ACPI_TYPE_INTEGER;
index c5a952c..b78374d 100644 (file)
@@ -266,7 +266,7 @@ acpi_system_save_state(
        //}
        /* disable interrupts
         * Note that acpi_suspend -- our caller -- will do this once we return.
-        * But, we want it done early, so we don't get any suprises during
+        * But, we want it done early, so we don't get any surprises during
         * the device suspend sequence.
         */
        //ACPI_DISABLE_IRQS();
@@ -384,7 +384,7 @@ acpi_suspend (
        status = acpi_system_suspend(state);
 
        /* Even if we failed to go to sleep, all of the devices are in an suspended
-        * mode. So, we run these unconditionaly to make sure we have a usable system
+        * mode. So, we run these unconditionally to make sure we have a usable system
         * no matter what.
         */
        AcpiLeaveSleepState(state);
index 0c74283..8a09cef 100644 (file)
@@ -116,7 +116,7 @@ acpi_extract_package (
                                tail_offset += sizeof(char*);
                                break;
                        default:
-                               ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d]: got number, expecing [%c].\n", i, format_string[i]));
+                               ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d]: got number, expecting [%c].\n", i, format_string[i]));
                                return_ACPI_STATUS(AE_BAD_DATA);
                                break;
                        }
@@ -134,7 +134,7 @@ acpi_extract_package (
                                tail_offset += sizeof(UINT8*);
                                break;
                        default:
-                               ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d] got string/buffer, expecing [%c].\n", i, format_string[i]));
+                               ACPI_DEBUG_PRINT((ACPI_DB_WARN, "Invalid package element [%d] got string/buffer, expecting [%c].\n", i, format_string[i]));
                                return_ACPI_STATUS(AE_BAD_DATA);
                                break;
                        }
index 87e7e3f..3a670c9 100644 (file)
@@ -404,7 +404,7 @@ Bus_PDO_QueryDeviceCaps(
        deviceCapabilities->EjectSupported = device->flags.ejectable;
        deviceCapabilities->HardwareDisabled = !device->status.enabled && !device->status.functional;
        deviceCapabilities->Removable = device->flags.removable;
-       deviceCapabilities->SurpriseRemovalOK = device->flags.suprise_removal_ok;
+       deviceCapabilities->SurpriseRemovalOK = device->flags.surprise_removal_ok;
        deviceCapabilities->UniqueID = device->flags.unique_id;
        deviceCapabilities->NoDisplayInUI = !device->status.show_in_ui;
        deviceCapabilities->Address = device->pnp.bus_address;
index a9bddd4..775f755 100644 (file)
@@ -975,7 +975,7 @@ CmBattGetBatteryStatus(IN PCMBATT_DEVICE_EXTENSION DeviceExtension,
         /* The battery is discharging but we don't know by how much... this is bad! */
         if ((BstState & ACPI_BATT_STAT_DISCHARG) &&
             (CmBattDebug & (CMBATT_ACPI_WARNING | CMBATT_GENERIC_WARNING)))
-            DbgPrint("CmBattGetBatteryStatus: battery rate is unkown when battery is not charging!\n");
+            DbgPrint("CmBattGetBatteryStatus: battery rate is unknown when battery is not charging!\n");
     }
     else if (DeviceExtension->State & BATTERY_DISCHARGING)
     {
index c1f0841..bc16b28 100644 (file)
@@ -90,7 +90,7 @@ typedef struct _ACPI_BIF_DATA
     ULONG BatteryCapacityGranularity1;
     ULONG BatteryCapacityGranularity2;
     CHAR ModelNumber[256];
-    CHAR SerialNubmer[256];
+    CHAR SerialNumber[256];
     CHAR BatteryType[256];
     CHAR OemInfo[256];
 } ACPI_BIF_DATA, *PACPI_BIF_DATA;
index f57b55f..baddaa6 100644 (file)
@@ -669,7 +669,7 @@ CmBattAddBattery(IN PDRIVER_OBJECT DriverObject,
         return Status;
     }
 
-    /* Build the FDO extensio, check if we support trip points */
+    /* Build the FDO extension, check if we support trip points */
     FdoExtension = FdoDeviceObject->DeviceExtension;
     FdoExtension->FdoType = CmBattBattery;
     FdoExtension->Started = 0;
@@ -750,7 +750,7 @@ CmBattAddAcAdapter(IN PDRIVER_OBJECT DriverObject,
     {
         /* Don't do anything */
         if (CmBattDebug & 0xC)
-            DbgPrint("CmBatt: Second AC adapter found.  Current version of driver only supports 1 aadapter.\n");
+            DbgPrint("CmBatt: Second AC adapter found.  Current version of driver only supports 1 adapter.\n");
     }
     else
     {
index 148373f..fac7209 100644 (file)
@@ -154,7 +154,7 @@ struct acpi_device_flags {
        UINT32                  removable:1;
        UINT32                  ejectable:1;
        UINT32                  lockable:1;
-       UINT32                  suprise_removal_ok:1;
+       UINT32                  surprise_removal_ok:1;
        UINT32                  power_manageable:1;
        UINT32                  performance_manageable:1;
        UINT32                  wake_capable:1;
index 73f4caf..8a09810 100644 (file)
 #define  PCI_PM_CAP_PME_CLOCK  0x0008  /* PME clock required */
 #define  PCI_PM_CAP_RESERVED    0x0010  /* Reserved field */
 #define  PCI_PM_CAP_DSI                0x0020  /* Device specific initialization */
-#define  PCI_PM_CAP_AUX_POWER  0x01C0  /* Auxilliary power support mask */
+#define  PCI_PM_CAP_AUX_POWER  0x01C0  /* Auxiliary power support mask */
 #define  PCI_PM_CAP_D1         0x0200  /* D1 power state support */
 #define  PCI_PM_CAP_D2         0x0400  /* D2 power state support */
 #define  PCI_PM_CAP_PME                0x0800  /* PME pin supported */
index 7780667..8c4caa9 100644 (file)
@@ -501,7 +501,7 @@ PciQueryResources(IN PPCI_PDO_EXTENSION PdoExtension,
         }
     }
 
-    /* Return the resouce list */
+    /* Return the resource list */
     *Buffer = ResourceList;
     return STATUS_SUCCESS;
 }
@@ -610,7 +610,7 @@ PciQueryRequirements(IN PPCI_PDO_EXTENSION PdoExtension,
         /* Check if the requirements are actually the zero list */
         if (*RequirementsList == PciZeroIoResourceRequirements)
         {
-            /* A simple NULL will sufficie for the PnP Manager */
+            /* A simple NULL will suffice for the PnP Manager */
             *RequirementsList = NULL;
             DPRINT1("Returning NULL requirements list\n");
         }
@@ -748,7 +748,7 @@ PciConfigureIdeController(IN PPCI_PDO_EXTENSION PdoExtension,
             PciData->ProgIf = ProgIf;
             PdoExtension->ProgIf = NewProgIf;
 
-            /* Clear the first four BARs to reset current BAR setttings */
+            /* Clear the first four BARs to reset current BAR settings */
             PciData->u.type0.BaseAddresses[0] = 0;
             PciData->u.type0.BaseAddresses[1] = 0;
             PciData->u.type0.BaseAddresses[2] = 0;
@@ -996,7 +996,7 @@ PciApplyHacks(IN PPCI_FDO_EXTENSION DeviceExtension,
             /*
              * Check for Intel ICH PCI-to-PCI (i82801) bridges (used on the i810,
              * i820, i840, i845 Chipsets) that have subtractive decode enabled,
-             * and whose hack flags do not specifiy that this support is broken.
+             * and whose hack flags do not specify that this support is broken.
              */
             if ((PdoExtension->HeaderType == PCI_BRIDGE_TYPE) &&
                 (PdoExtension->Dependent.type1.SubtractiveDecode) &&
index bb8669c..04e7979 100644 (file)
@@ -214,7 +214,7 @@ PciAssignSlotResources(IN PUNICODE_STRING RegistryPath,
                     ASSERT(Resources == NULL);
                 }
 
-                /* If assignment succeeed, then we are done */
+                /* If assignment succeed, then we are done */
                 if (NT_SUCCESS(Status)) break;
             }
 
index e430bd5..ee5215f 100644 (file)
@@ -131,7 +131,7 @@ PciQueryInterface(IN PPCI_FDO_EXTENSION DeviceExtension,
             if (!NT_SUCCESS(Status))
             {
                 /* This interface was not initialized correctly, skip it */
-                DPRINT1("PCI - PciQueryInterface - Contructor %p = %08lx\n",
+                DPRINT1("PCI - PciQueryInterface - Constructor %p = %08lx\n",
                         PciInterface->Constructor, Status);
                 continue;
             }
index 2d0303d..09fb1ea 100644 (file)
@@ -695,7 +695,7 @@ PPBridge_ChangeResourceSettings(IN PPCI_PDO_EXTENSION PdoExtension,
      * Check for Intel ICH PCI-to-PCI (i82801) bridges (used on the i810,
      * i820, i840, i845 Chipsets) that don't have subtractive decode broken.
      * If they do have broken subtractive support, or if they are not ICH bridges,
-     * then check if the bridge supports substractive decode at all.
+     * then check if the bridge supports subtractive decode at all.
      */
     if ((((PdoExtension->VendorId == 0x8086) &&
          ((PdoExtension->DeviceId == 0x2418) ||
index efc29af..323bd95 100644 (file)
@@ -141,7 +141,7 @@ PciSetPowerManagedDevicePowerState(IN PPCI_PDO_EXTENSION DeviceExtension,
     /* Does the device support power management at all? */
     if (!(DeviceExtension->HackFlags & PCI_HACK_NO_PM_CAPS))
     {
-        /* Get the PM capabailities register */
+        /* Get the PM capabilities register */
         CapsOffset = PciReadDeviceCapability(DeviceExtension,
                                              DeviceExtension->CapabilitiesPtr,
                                              PCI_CAPABILITY_ID_POWER_MANAGEMENT,
index d406bbd..e335a63 100644 (file)
@@ -675,7 +675,7 @@ PciIsCriticalDeviceClass(IN UCHAR BaseClass,
     /* Check for system or bridge devices */
     if (BaseClass == PCI_CLASS_BASE_SYSTEM_DEV)
     {
-        /* Interrupt controlers are critical */
+        /* Interrupt controllers are critical */
         return SubClass == PCI_SUBCLASS_SYS_INTERRUPT_CTLR;
     }
     else if (BaseClass == PCI_CLASS_BRIDGE_DEV)
@@ -1052,7 +1052,7 @@ PciClassifyDeviceType(IN PPCI_PDO_EXTENSION PdoExtension)
 {
     ASSERT(PdoExtension->ExtensionType == PciPdoExtensionType);
 
-    /* Differenriate between devices and bridges */
+    /* Differentiate between devices and bridges */
     if (PdoExtension->BaseClass != PCI_CLASS_BRIDGE_DEV) return PciTypeDevice;
 
     /* The PCI Bus driver handles only CardBus and PCI bridges (plus host) */
@@ -1568,7 +1568,7 @@ PciQueryPowerCapabilities(IN PPCI_PDO_EXTENSION PdoExtension,
         DevicePowerState = AttachedCaps.DeviceState[CurrentState];
         NewPowerState = DevicePowerState;
 
-        /* The attachee suports D1, but this PDO does not */
+        /* The attachee supports D1, but this PDO does not */
         if ((NewPowerState == PowerDeviceD1) &&
             !(PdoExtension->PowerCapabilities.Support.D1))
         {
index 3f75b6e..b268e83 100644 (file)
@@ -640,7 +640,7 @@ CdfsGetFCBForFile(PDEVICE_EXTENSION Vcb,
     }
     parentFCB = NULL;
 
-    /* Parse filename and check each path element for existance and access */
+    /* Parse filename and check each path element for existence and access */
     while (CdfsGetNextPathElement(currentElement) != 0)
     {
         /*  Skip blank directory levels */
index 181d247..d3129a3 100755 (executable)
@@ -591,7 +591,7 @@ Return Value:
     ASSERT_LOCKED_FCB( Fcb );
 
     //
-    //  Find the entry containg this starting offset.
+    //  Find the entry containing this starting offset.
     //
 
     McbEntryOffset = CdFindMcbEntry( IrpContext, Fcb, StartingFileOffset );
@@ -698,7 +698,7 @@ Return Value:
 
 \f
 //
-//  Local suupport routine
+//  Local support routine
 //
 
 ULONG
index 69dc11d..ef41b58 100755 (executable)
@@ -221,7 +221,7 @@ typedef struct _RAW_JOLIET_VD {
     UCHAR       Reserved[8];        // reserved 8 = 0
     ULONG       VolSpaceI;          // size of the volume in LBN's Intel
     ULONG       VolSpaceM;          // size of the volume in LBN's Motorola
-    UCHAR       CharSet[32];        // character set bytes 0 = ASCII, Joliett Seq here
+    UCHAR       CharSet[32];        // character set bytes 0 = ASCII, Joliet Seq here
     USHORT      VolSetSizeI;        // volume set size Intel
     USHORT      VolSetSizeM;        // volume set size Motorola
     USHORT      VolSeqNumI;         // volume set sequence number Intel
index 0577a4c..a03fc36 100755 (executable)
@@ -147,7 +147,7 @@ extern LONG CdXAAudioPhileHeader[];
 //      ASSERT_RESOURCE_NOT_MINE( IN PERESOURCE Resource );
 //
 //  The following macros are used to check whether the current thread
-//  owns the resoures in the given structures.
+//  owns the resource in the given structures.
 //
 //      ASSERT_EXCLUSIVE_CDDATA
 //
index d3ffcfd..e120ee2 100755 (executable)
@@ -133,7 +133,7 @@ Abstract:
         5. A fast mutex in the Vcb will protect access to the Fcb table and
             the open counts in the Vcb.  It is also used to modify the reference
             counts in all Fcbs.  This mutex cannot be acquired
-            exclusely and is an end resource.
+            exclusively and is an end resource.
 
         6. A fast mutex in the Fcb will synchronize access to all Fcb fields
             which aren't synchronized in some other way.  A thread may acquire
@@ -244,7 +244,7 @@ typedef struct _CD_NAME {
     UNICODE_STRING FileName;
 
     //
-    //  String containging the version number.
+    //  String containing the version number.
     //
 
     UNICODE_STRING VersionString;
@@ -364,7 +364,7 @@ typedef struct _CD_DATA {
     //      operation.
     //  MaxDelayedCloseCount - Trigger delay close work at this threshold.
     //  MinDelayedCloseCount - Turn off delay close work at this threshold.
-    //  DelayedCloseCount - Number of entries on the delayted close queue.
+    //  DelayedCloseCount - Number of entries on the delayed close queue.
     //
     //  CloseItem - Workqueue item used to start FspClose thread.
     //
@@ -781,7 +781,7 @@ typedef struct _FCB_NONPAGED {
 
     //
     //  The following field contains a record of special pointers used by
-    //  MM and Cache to manipluate section objects.  Note that the values
+    //  MM and Cache to manipulate section objects.  Note that the values
     //  are set outside of the file system.  However the file system on an
     //  open/create will set the file object's SectionObject field to
     //  point to this field
@@ -1037,7 +1037,7 @@ typedef CCB *PCCB;
 
 \f
 //
-//  The Irp Context record is allocated for every orginating Irp.  It is
+//  The Irp Context record is allocated for every originating Irp.  It is
 //  created by the Fsd dispatch routines, and deallocated by the CdComplete
 //  request routine
 //
@@ -1487,7 +1487,7 @@ typedef DIRENT_ENUM_CONTEXT *PDIRENT_ENUM_CONTEXT;
 \f
 //
 //  Following structure is used to smooth out the differences in the HSG, ISO
-//  and Joliett directory entries.
+//  and Joliet directory entries.
 //
 
 typedef struct _DIRENT {
index 913c0fd..9090c6e 100755 (executable)
@@ -439,7 +439,7 @@ Return Value:
         //
         //  Since we now must make volumes go away as soon as reasonable after
         //  the last user handles closes, key off of the cleanup count.  It is
-        //  OK to do this more than neccesary.  Since this Fcb could be holding
+        //  OK to do this more than necessary.  Since this Fcb could be holding
         //  a number of other Fcbs (and thus their references), a simple check
         //  on reference count is not appropriate.
         //
index a8e2fb4..50bafd3 100755 (executable)
@@ -925,7 +925,7 @@ Return Value:
                 if (TryingYellowbookMode2) {
 
                     //
-                    //  We succesfully got data when we tried switching the trackmode,
+                    //  We successfully got data when we tried switching the trackmode,
                     //  so change the state of the FCB to remember that.
                     //
 
@@ -1552,7 +1552,7 @@ Return Value:
                 ScratchUserBufferOffset += ThisIoRun->DiskByteCount;
 
             //
-            //  Otherwise we need to allocate an auxilary buffer for the next sector.
+            //  Otherwise we need to allocate an auxiliary buffer for the next sector.
             //
 
             } else {
@@ -2451,7 +2451,7 @@ Return Value:
     MasterIrp = IrpContext->Irp;
 
     //
-    //  Itterate through the runs, doing everything that can fail.
+    //  Iterate through the runs, doing everything that can fail.
     //  We let the cleanup in CdFinishBuffers clean up on error.
     //
 
@@ -2656,7 +2656,7 @@ Return Value:
     MasterIrp = IrpContext->Irp;
 
     //
-    //  Itterate through the runs, doing everything that can fail.
+    //  Iterate through the runs, doing everything that can fail.
     //  We let the cleanup in CdFinishBuffers clean up on error.
     //
 
index 53e9e31..3964904 100755 (executable)
@@ -387,7 +387,7 @@ Return Value:
             //
             //  Here are the rules concerning filling up the buffer:
             //
-            //  1.  The Io system garentees that there will always be
+            //  1.  The Io system guarantees that there will always be
             //      enough room for at least one base record.
             //
             //  2.  If the full first record (including file name) cannot
@@ -733,7 +733,7 @@ Return Value:
     } finally {
 
         //
-        //  Cleanup our search context - *before* aquiring the FCB mutex exclusive,
+        //  Cleanup our search context - *before* acquiring the FCB mutex exclusive,
         //  else can block on threads in cdcreateinternalstream/purge which 
         //  hold the FCB but are waiting for all maps in this stream to be released.
         //
@@ -741,7 +741,7 @@ Return Value:
         CdCleanupFileContext( IrpContext, &FileContext );
 
         //
-        //  Now we can safely aqure the FCB mutex if we need to.
+        //  Now we can safely acquire the FCB mutex if we need to.
         //
 
         if (DoCcbUpdate && !NT_ERROR( Status )) {
@@ -1371,7 +1371,7 @@ Return Value:
     PAGED_CODE();
 
     //
-    //  Loop until we find a match or exaust the directory.
+    //  Loop until we find a match or exhaust the directory.
     //
 
     while (TRUE) {
index 6edfc1b..6e02c2e 100755 (executable)
@@ -241,7 +241,7 @@ Arguments:
         find.  This may already point to a dirent so we need to check if
         we are in the same sector and unmap any buffer as necessary.
 
-        This dirent is left in an indeterminant state if we don't find a dirent.
+        This dirent is left in an indeterminate state if we don't find a dirent.
 
 Return Value:
 
@@ -825,7 +825,7 @@ CdFindFile (
 
 Routine Description:
 
-    This routine is called to search a dirctory for a file matching the input
+    This routine is called to search a directory for a file matching the input
     name.  This name has been upcased at this point if this a case-insensitive
     search.  The name has been separated into separate name and version strings.
     We look for an exact match in the name and only consider the version if
@@ -1000,7 +1000,7 @@ CdFindDirectory (
 
 Routine Description:
 
-    This routine is called to search a dirctory for a directory matching the input
+    This routine is called to search a directory for a directory matching the input
     name.  This name has been upcased at this point if this a case-insensitive
     search.  We look for an exact match in the name and do not look for shortname
     equivalents.
@@ -1283,7 +1283,7 @@ Routine Description:
 
     This routine is called to walk through the directory until we find the
     first possible dirent for file.  We are positioned at some point described
-    by the FileContext.  We will walk through any remaing dirents for the
+    by the FileContext.  We will walk through any remaining dirents for the
     current file until we find the first dirent for some subsequent file.
 
     We can be called when we have found just one dirent for a file or all
index f2a9db1..7a0bdbd 100755 (executable)
@@ -867,7 +867,7 @@ Return Value:
                 //  Since we're always last in the mount order,  we won't be preventing
                 //  any other FS from trying to mount the data track.  However if the 
                 //  data track was at the start of the disc,  then we abort,  to avoid
-                //  having to filter it from our synthesised directory listing later.  We
+                //  having to filter it from our synthesized directory listing later.  We
                 //  already filtered off any data track at the end.
                 //
 
@@ -1869,7 +1869,7 @@ Return Value:
     CdReleaseVcb( IrpContext, Vcb );
 
     //
-    //  Send notification that the volume is avaliable.
+    //  Send notification that the volume is available.
     //
 
     if (NT_SUCCESS( Status )) {
@@ -2295,7 +2295,7 @@ Return Value:
 
     Status = ObReferenceObjectByHandle( Handle,
                                         0,
-                                        IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibily with exported kernel data */
+                                        IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibility with exported kernel data */
                                         KernelMode,
                                         (PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */
                                         NULL );
@@ -2554,7 +2554,7 @@ Return Value:
     //  and still have the disk work.  As this form of error worked in NT 4.0, and
     //  since these disks really do exist, I don't want to change them.
     //
-    //  If we wished to support all such media (we don't), it would be neccesary
+    //  If we wished to support all such media (we don't), it would be necessary
     //  to clear this flag on finding ISO or HSG descriptors below.
     //
 
index 9d687dd..8cdfb12 100755 (executable)
@@ -568,7 +568,7 @@ Return Value:
     //  into the name in order to reduce the chance of name conflicts.  We will use
     //  a tilde character followed by a character representation of the dirent offset.
     //  This will be the hexadecimal representation of the dirent offset in the directory.
-    //  It is actuall this offset divided by 32 since we don't need the full
+    //  It is actually this offset divided by 32 since we don't need the full
     //  granularity.
     //
 
@@ -650,7 +650,7 @@ Return Value:
 
     //
     //  Figure out the maximum number of characters we can copy of the base
-    //  name.  We subract the number of characters in the dirent string from 8.
+    //  name.  We subtract the number of characters in the dirent string from 8.
     //  We will copy this many characters or stop when we reach a '.' character
     //  or a '~' character in the name.
     //
@@ -987,8 +987,8 @@ Return Value:
 
     COMPARISON - returns
 
-        LessThan    if NameA < NameB lexicalgraphically,
-        GreaterThan if NameA > NameB lexicalgraphically,
+        LessThan    if NameA < NameB lexicographically,
+        GreaterThan if NameA > NameB lexicographically,
         EqualTo     if NameA is equal to NameB
 
 --*/
@@ -1016,7 +1016,7 @@ Return Value:
 
     //
     //  Loop through looking at all of the characters in both strings
-    //  testing for equalilty, less than, and greater than
+    //  testing for equality, less than, and greater than
     //
 
     i = RtlCompareMemory( NameA->Buffer, NameB->Buffer, MinLength );
index f9484d2..607a105 100755 (executable)
@@ -22,7 +22,7 @@ Abstract:
     of the tree.  The children of a given directory will be grouped together.
 
     The directories are assigned ordinal numbers based on their position in
-    the path table.  The root dirctory is assigned ordinal value 1.
+    the path table.  The root directory is assigned ordinal value 1.
 
     Path table sectors:
 
@@ -493,7 +493,7 @@ Routine Description:
 
     This routine is called to map (or allocate and copy) the next
     data block in the path table.  We check if the next block will
-    span a view boundary and allocate an auxilary buffer in that case.
+    span a view boundary and allocate an auxiliary buffer in that case.
 
 Arguments:
 
@@ -521,7 +521,7 @@ Return Value:
 
     //
     //  Map the new block and set the enumeration context to this
-    //  point.  Allocate an auxilary buffer if necessary.
+    //  point.  Allocate an auxiliary buffer if necessary.
     //
 
     CurrentLength = 2 * SECTOR_SIZE;
@@ -564,7 +564,7 @@ Return Value:
         (FlagOn( ((ULONG) BaseOffset), VACB_MAPPING_MASK ) == LAST_VACB_SECTOR_OFFSET )) {
 
         //
-        //  Map each sector individually and store into an auxilary
+        //  Map each sector individually and store into an auxiliary
         //  buffer.
         //
 
@@ -605,7 +605,7 @@ Return Value:
 
         //
         //  There is a slight chance that we have allocated an
-        //  auxilary buffer on the previous sector.
+        //  auxiliary buffer on the previous sector.
         //
 
         if (PathContext->AllocatedData) {
@@ -789,7 +789,7 @@ Routine Description:
     path entry.  If this is a Joliet name then we will make sure we have
     an allocated buffer and need to convert from big endian to little
     endian.  We also correctly update the case name.  If this operation is ignore
-    case then we need an auxilary buffer for the name.
+    case then we need an auxiliary buffer for the name.
 
     For an Ansi disk we can use the name from the disk for the exact case.  We only
     need to allocate a buffer for the ignore case name.  The on-disk representation of
index 48f8dc4..1447536 100755 (executable)
@@ -342,7 +342,7 @@ Return Value:
         //  Since we were able to lock the volume, we are guaranteed to
         //  move this volume into dismount state and disconnect it from
         //  the underlying storage stack.  The force on our part is actually
-        //  unnecesary, though complete.
+        //  unnecessary, though complete.
         //
         //  What is not strictly guaranteed, though, is that the closes
         //  for the metadata streams take effect synchronously underneath
@@ -371,7 +371,7 @@ Return Value:
         //
         //  The reason this is the case is that handles/fileobjects place a reference
         //  on the device objects they overly.  In the filesystem case, these references
-        //  are on our target devices.  PnP correcly thinks that if references remain
+        //  are on our target devices.  PnP correctly thinks that if references remain
         //  on the device objects in the stack that someone has a handle, and that this
         //  counts as a reason to not succeed the query - even though every interrogated
         //  driver thinks that it is OK.
@@ -395,7 +395,7 @@ Return Value:
     CdReleaseCdData( IrpContext );
     
     //
-    //  Cleanup our IrpContext and complete the IRP if neccesary.
+    //  Cleanup our IrpContext and complete the IRP if necessary.
     //
 
     CdCompleteRequest( IrpContext, Irp, Status );
@@ -446,7 +446,7 @@ Return Value:
     //  (the only case in which this will be the first warning).
     //
     //  Note that it is entirely unlikely that we will be around
-    //  for a REMOVE in the first two cases, as we try to intiate
+    //  for a REMOVE in the first two cases, as we try to initiate
     //  dismount.
     //
     
@@ -527,7 +527,7 @@ Return Value:
     //
     //  Now make our dismount happen.  This may not vaporize the
     //  Vcb, of course, since there could be any number of handles
-    //  outstanding if we were not preceeded by a QUERY.
+    //  outstanding if we were not preceded by a QUERY.
     //
     //  PnP will take care of disconnecting this stack if we
     //  couldn't get off of it immediately.
index abfecdc..b062c1b 100755 (executable)
@@ -109,7 +109,7 @@ Return Value:
     }
 
     //
-    //  If not acquired and the user didn't specifiy IgnoreWait then
+    //  If not acquired and the user didn't specify IgnoreWait then
     //  raise CANT_WAIT.
     //
 
index 0ab42dc..be42daf 100755 (executable)
@@ -368,7 +368,7 @@ Return Value:
     CdUpdateVcbCondition( Vcb, VcbMountInProgress);
 
     //
-    //  Refererence the Vcb for two reasons.  The first is a reference
+    //  Reference the Vcb for two reasons.  The first is a reference
     //  that prevents the Vcb from going away on the last close unless
     //  dismount has already occurred.  The second is to make sure
     //  we don't go into the dismount path on any error during mount
@@ -495,7 +495,7 @@ Return Value:
         if (ARGUMENT_PRESENT( RawIsoVd )) {
 
             //
-            //  Create the path table Fcb and refererence it and the Vcb.
+            //  Create the path table Fcb and reference it and the Vcb.
             //
 
             CdLockVcb( IrpContext, Vcb );
@@ -686,7 +686,7 @@ Return Value:
             ULONG RootDirectorySize;
 
             //
-            //  Create the path table Fcb and refererence it and the Vcb.
+            //  Create the path table Fcb and reference it and the Vcb.
             //
 
             CdLockVcb( IrpContext, Vcb );
@@ -862,7 +862,7 @@ Routine Description:
 
     This routine is called to delete a Vcb which failed mount or has been
     dismounted.  The dismount code should have already removed all of the
-    open Fcb's.  We do nothing here but clean up other auxilary structures.
+    open Fcb's.  We do nothing here but clean up other auxiliary structures.
 
 Arguments:
 
@@ -1694,7 +1694,7 @@ Routine Description:
 
     This routine is called to cleanup and possibly deallocate the Irp Context.
     If the request is being posted or this Irp Context is possibly on the
-    stack then we only cleanup any auxilary structures.
+    stack then we only cleanup any auxiliary structures.
 
 Arguments:
 
@@ -2361,12 +2361,12 @@ CdDeleteFcb (
 Routine Description:
 
     This routine is called to cleanup and deallocate an Fcb.  We know there
-    are no references remaining.  We cleanup any auxilary structures and
+    are no references remaining.  We cleanup any auxiliary structures and
     deallocate this Fcb.
 
 Arguments:
 
-    Fcb - This is the Fcb to deallcoate.
+    Fcb - This is the Fcb to deallocate.
 
 Return Value:
 
index 612c867..dae9c01 100755 (executable)
@@ -211,7 +211,7 @@ Return Value:
         //
         //  We had some trouble trying to perform the verify or raised
         //  an error ourselves.  So we'll abort the I/O request with
-        //  the error status that we get back from the execption code.
+        //  the error status that we get back from the exception code.
         //
 
         Status = CdProcessException( IrpContext, Irp, GetExceptionCode() );
@@ -550,7 +550,7 @@ Return Value:
         }
 
         //
-        //  Raise the verify / error if neccessary.
+        //  Raise the verify / error if necessary.
         //
         
         if (ForceVerify || !NT_SUCCESS( Status)) {
index e592f98..2abce7f 100755 (executable)
@@ -222,7 +222,7 @@ Arguments:
         is to be returned
 
     Length - Supplies the length of the buffer in byte.  This variable
-        upon return recieves the remaining bytes free in the buffer
+        upon return receives the remaining bytes free in the buffer
 
 Return Value:
 
@@ -312,7 +312,7 @@ Arguments:
         is to be returned
 
     Length - Supplies the length of the buffer in byte.  This variable
-        upon return recieves the remaining bytes free in the buffer
+        upon return receives the remaining bytes free in the buffer
 
 Return Value:
 
@@ -373,7 +373,7 @@ Arguments:
         is to be returned
 
     Length - Supplies the length of the buffer in byte.  This variable
-        upon return recieves the remaining bytes free in the buffer
+        upon return receives the remaining bytes free in the buffer
 
 Return Value:
 
@@ -431,7 +431,7 @@ Arguments:
         is to be returned
 
     Length - Supplies the length of the buffer in byte.  This variable
-        upon return recieves the remaining bytes free in the buffer
+        upon return receives the remaining bytes free in the buffer
 
 Return Value:
 
index 49e7a3a..23e1948 100644 (file)
@@ -1003,13 +1003,13 @@ Index: drivers/filesystems/cdfs_new/fsctrl.c
      IN PIRP Irp
 @@ -2294,9 +2295,9 @@
  
-     Status = ObReferenceObjectByHandle( Handle,
-                                         0,
--                                        *IoFileObjectType,
-+                                        IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibily with exported kernel data */
-                                         KernelMode,
--                                        &FileToMarkBad,
-+                                        (PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */
+     Status = ObReferenceObjectByHandle( Handle,\r
+                                         0,\r
+-                                        *IoFileObjectType,\r
++                                        IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibility with exported kernel data */\r
+                                         KernelMode,\r
+-                                        &FileToMarkBad,\r
++                                        (PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */\r
                                          NULL );
  
      if (!NT_SUCCESS(Status)) {
index 8abc28d..83db3a4 100755 (executable)
@@ -107,7 +107,7 @@ CdPrePostIrp (
 
 Routine Description:
 
-    This routine performs any neccessary work before STATUS_PENDING is
+    This routine performs any necessary work before STATUS_PENDING is
     returned with the Fsd thread.  This routine is called within the
     filesystem and by the oplock package.
 
@@ -315,7 +315,7 @@ CdAddToWorkque (
 
 Routine Description:
 
-    This routine is called to acually store the posted Irp to the Fsp
+    This routine is called to actually store the posted Irp to the Fsp
     workque.
 
 Arguments:
index 8a21789..abc361d 100644 (file)
@@ -611,7 +611,7 @@ VfatCreateFile(
         return STATUS_OBJECT_PATH_NOT_FOUND;
     }
 
-    /* Check for illegal characters and illegale dot sequences in the file name */
+    /* Check for illegal characters and illegal dot sequences in the file name */
     PathNameU = FileObject->FileName;
     c = PathNameU.Buffer + PathNameU.Length / sizeof(WCHAR);
     last = c - 1;
index d35f53c..28effc1 100644 (file)
@@ -354,7 +354,7 @@ FATGetNextDirEntry(
 
                 index = longNameEntry->id & 0x3f; // Note: it can be 0 for corrupted FS
                 
-                /* Make sure index is valid and we have enaugh space in buffer
+                /* Make sure index is valid and we have enough space in buffer
                   (we count one char for \0) */
                 if (index > 0 &&
                     index * 13 < DirContext->LongNameU.MaximumLength / sizeof(WCHAR))
index 28d4299..f032268 100644 (file)
@@ -145,7 +145,7 @@ vfatRenameEntry(
 
 /*
  * try to find contiguous entries frees in directory,
- * extend a directory if is neccesary
+ * extend a directory if is necessary
  */
 BOOLEAN
 vfatFindDirSpace(
index 1d44b25..9e019b7 100644 (file)
@@ -67,7 +67,7 @@ VfatHasFileSystem(
                                       FALSE);
     if (!NT_SUCCESS(Status))
     {
-        DPRINT("VfatBlockDeviceIoControl faild (%x)\n", Status);
+        DPRINT("VfatBlockDeviceIoControl failed (%x)\n", Status);
         return Status;
     }
 
@@ -85,7 +85,7 @@ VfatHasFileSystem(
                                           FALSE);
         if (!NT_SUCCESS(Status))
         {
-            DPRINT("VfatBlockDeviceIoControl faild (%x)\n", Status);
+            DPRINT("VfatBlockDeviceIoControl failed (%x)\n", Status);
             return Status;
         }
 
@@ -674,7 +674,7 @@ VfatVerify(
         {
             /*
              * FIXME:
-             *   Preformated floppy disks have very often a serial number of 0000:0000.
+             *   Preformatted floppy disks have very often a serial number of 0000:0000.
              *   We should calculate a crc sum over the sectors from the root directory as secondary volume number.
              *   Each write to the root directory must update this crc sum.
              */
index f149065..fd26502 100644 (file)
@@ -423,7 +423,7 @@ typedef struct _VFATFCB
     FILE_LOCK FileLock;
 
     /*
-     * Optimalization: caching of last read/write cluster+offset pair. Can't
+     * Optimization: caching of last read/write cluster+offset pair. Can't
      * be in VFATCCB because it must be reset everytime the allocated clusters
      * change.
      */
index f096087..3c01eda 100644 (file)
@@ -61,7 +61,7 @@ FsRecLoadFileSystem(IN PDEVICE_OBJECT DeviceObject,
         /* Make sure that we haven't already loaded the FS */
         if (DeviceExtension->State != Loaded)
         {
-            /* Unregiser us, and set us as loaded */
+            /* Unregister us, and set us as loaded */
             IoUnregisterFileSystem(DeviceObject);
             DeviceExtension->State = Loaded;
         }
@@ -255,7 +255,7 @@ FsRecRegisterFs(IN PDRIVER_OBJECT DriverObject,
                           0);
     if (NT_SUCCESS(Status))
     {
-        /* We suceeded, close the handle */
+        /* We succeeded, close the handle */
         ZwClose(FileHandle);
     }
     else if (Status != STATUS_OBJECT_NAME_NOT_FOUND)
index 646b9e6..a2c9eed 100644 (file)
@@ -12,7 +12,7 @@ struct journal_params {
     // Block number of the block containing the first journal node.
     UINT32 jp_journal_1st_block;             /* where does journal start from on its device */
 
-    // Journal device number (?? for if the journal is on a seperate drive ??)
+    // Journal device number (?? for if the journal is on a separate drive ??)
     UINT32 jp_journal_dev;           /* journal device st_rdev */
 
     // Original journal size.  (Needed when using partition on systems w/ different default journal sizes).
index 4531786..89c595b 100644 (file)
@@ -140,7 +140,7 @@ MuppIsDfsEnabled(VOID)
     KeyName.MaximumLength = sizeof(L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\Mup");
 
     /* Simply query registry to know whether we have to disable DFS.
-     * Unless explicitely stated in registry, we will try to enable DFS.
+     * Unless explicitly stated in registry, we will try to enable DFS.
      */
     InitializeObjectAttributes(&ObjectAttributes,
                                &KeyName,
@@ -1371,7 +1371,7 @@ MupRerouteOpen(PFILE_OBJECT FileObject,
     RtlMoveMemory(FullPath, UncProvider->DeviceName.Buffer, UncProvider->DeviceName.Length);
     RtlMoveMemory((PWSTR)((ULONG_PTR)FullPath + UncProvider->DeviceName.Length), FileObject->FileName.Buffer, FileObject->FileName.Length);
 
-    /* And redo the path in the file oject */
+    /* And redo the path in the file object */
     ExFreePoolWithTag(FileObject->FileName.Buffer, 0);
     FileObject->FileName.Buffer = FullPath;
     FileObject->FileName.MaximumLength = TotalLength;
@@ -1764,7 +1764,7 @@ QueryPathCompletionRoutine(PDEVICE_OBJECT DeviceObject,
             }
 
             /* Otherwise, if the prefix was in the prefix table, just drop it:
-             * we have a provider which superseeds the accepted prefix, so leave
+             * we have a provider which supersedes the accepted prefix, so leave
              * room for the new prefix/provider
              */
             ExAcquireResourceExclusiveLite(&MupPrefixTableLock, TRUE);
@@ -1856,7 +1856,7 @@ QueryPathCompletionRoutine(PDEVICE_OBJECT DeviceObject,
                 TableStatus = MupOrderedErrorList[0];
                 LatestPos = 0;
 
-                /* Otherwise, time to compare statuteses, between the latest failed
+                /* Otherwise, time to compare statuses, between the latest failed
                  * and the current failure.
                  * We have an order table of failed status: the deeper you go in the
                  * table, the more the error is critical.
index c0cb43e..4a4a6a6 100644 (file)
@@ -271,7 +271,7 @@ NtfsOpenFile(PDEVICE_EXTENSION DeviceExt,
         }
     }
 
-    //FIXME: Get cannonical path name (remove .'s, ..'s and extra separators)
+    //FIXME: Get canonical path name (remove .'s, ..'s and extra separators)
 
     DPRINT("PathName to open: %S\n", FileName);
 
index e3ac61f..e88944c 100644 (file)
@@ -628,7 +628,7 @@ NtfsGetFCBForFile(PNTFS_VCB Vcb,
 
     parentFCB = NULL;
 
-    /* Parse filename and check each path element for existance and access */
+    /* Parse filename and check each path element for existence and access */
     while (NtfsGetNextPathElement(currentElement) != 0)
     {
         /* Skip blank directory levels */
index be7e6ed..9e987c9 100644 (file)
@@ -241,7 +241,7 @@ typedef struct _FILE_RECORD_HEADER
     ULONG BytesAllocated;         /* Allocated size of the FILE record */
     ULONGLONG BaseFileRecord;     /* File reference to the base FILE record */
     USHORT NextAttributeNumber;   /* Next Attribute Id */
-    USHORT Pading;                /* Align to 4 UCHAR boundary (XP) */
+    USHORT Padding;               /* Align to 4 UCHAR boundary (XP) */
     ULONG MFTRecordNumber;        /* Number of this MFT Record (XP) */
 } FILE_RECORD_HEADER, *PFILE_RECORD_HEADER;
 
index c325785..7854000 100644 (file)
@@ -35,7 +35,7 @@ static
 NTSTATUS
 FltpAttachDeviceObject(
     _In_ PDEVICE_OBJECT SourceDevice,
-    _In_ PDEVICE_OBJECT Targetevice,
+    _In_ PDEVICE_OBJECT TargetDevice,
     _Out_ PDEVICE_OBJECT *AttachedToDeviceObject
 );
 
@@ -1752,7 +1752,7 @@ FltpEnumerateFileSystemVolumes(_In_ PDEVICE_OBJECT DeviceObject)
         }
 
         /*
-         * Try to get the storage stack (disk) device object accociated with
+         * Try to get the storage stack (disk) device object associated with
          * this file system device object. Ignore the device if we don't have one
          */
         Status = IoGetDiskDeviceObject(DeviceList[i],
@@ -1905,7 +1905,7 @@ FltpAttachToFileSystemDevice(_In_ PDEVICE_OBJECT DeviceObject,
                             &NewDeviceObject);
     if (!NT_SUCCESS(Status))
     {
-        DPRINT1("Failed to create a DO for attatching to a FS : 0x%X\n", Status);
+        DPRINT1("Failed to create a DO for attaching to a FS : 0x%X\n", Status);
         return Status;
     }
 
@@ -2172,7 +2172,7 @@ SetupDispatchAndCallbacksTables(_In_ PDRIVER_OBJECT DriverObject)
     DriverObject->MajorFunction[IRP_MJ_FILE_SYSTEM_CONTROL] = FltpFsControl;
     DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = FltpDeviceControl;
 
-    /* The FastIo diapatch table is stored in the pool along with a tag */
+    /* The FastIo dispatch table is stored in the pool along with a tag */
     FastIoDispatch = ExAllocatePoolWithTag(NonPagedPool, sizeof(FAST_IO_DISPATCH), FM_TAG_DISPATCH_TABLE);
     if (FastIoDispatch == NULL) return STATUS_INSUFFICIENT_RESOURCES;
 
index cdda237..d235816 100644 (file)
@@ -43,7 +43,7 @@ typedef struct _FLTMGR_DEVICE_EXTENSION
     /* The file system we're attached to */
     PDEVICE_OBJECT AttachedToDeviceObject;
 
-    /* The storage stack(disk) accociated with the file system device object we're attached to */
+    /* The storage stack(disk) associated with the file system device object we're attached to */
     PDEVICE_OBJECT StorageStackDeviceObject;
 
     /* Either physical drive for volume device objects otherwise
index 9053420..d99f0ec 100644 (file)
@@ -1349,7 +1349,7 @@ QueryVolumeName(IN HANDLE RootDirectory,
         return STATUS_BUFFER_TOO_SMALL;
     }
 
-    /* Copy symoblic name */
+    /* Copy symbolic name */
     SymbolicName->Length = ReparseDataBuffer->MountPointReparseBuffer.SubstituteNameLength;
     RtlCopyMemory(SymbolicName->Buffer,
                   (PWSTR)((ULONG_PTR)ReparseDataBuffer->MountPointReparseBuffer.PathBuffer +
@@ -1699,7 +1699,7 @@ CreateRemoteDatabaseWorker(IN PDEVICE_OBJECT DeviceObject,
         goto Cleanup;
     }
 
-    /* Finish initating strings */
+    /* Finish initiating strings */
     RtlCopyMemory(DatabaseName.Buffer, DeviceInformation->DeviceName.Buffer, DeviceInformation->DeviceName.Length);
     RtlCopyMemory(DatabaseName.Buffer + (DeviceInformation->DeviceName.Length / sizeof(WCHAR)),
                   RemoteDatabase.Buffer, RemoteDatabase.Length);
index 8e91493..08b386d 100644 (file)
@@ -537,7 +537,7 @@ MountMgrNextDriveLetterWorker(IN PDEVICE_EXTENSION DeviceExtension,
         }
     }
 
-    /* No, ensure that the device is not automonted nor removable */
+    /* No, ensure that the device is not automounted nor removable */
     if (!DeviceExtension->NoAutoMount && !Removable)
     {
         if (DriveLetterInfo->DriveLetterWasAssigned)
index 0b7e336..54487a4 100644 (file)
@@ -698,7 +698,7 @@ FindDeviceInfo(IN PDEVICE_EXTENSION DeviceExtension,
         FreePool(DeviceName.Buffer);
     }
 
-    /* Return found intormation */
+    /* Return found information */
     if (NextEntry == &(DeviceExtension->DeviceListHead))
     {
         return STATUS_OBJECT_NAME_NOT_FOUND;
@@ -1612,7 +1612,7 @@ MountMgrMountedDeviceRemoval(IN PDEVICE_EXTENSION DeviceExtension,
         }
     }
 
-    /* Releave driver */
+    /* Release driver */
     KeReleaseSemaphore(&(DeviceExtension->DeviceLock), IO_NO_INCREMENT, 1, FALSE);
 }
 
index 197dc46..8b7c676 100644 (file)
@@ -330,7 +330,7 @@ MountMgrNotify(IN PDEVICE_EXTENSION DeviceExtension)
     }
     IoReleaseCancelSpinLock(OldIrql);
 
-    /* Then, notifiy them one by one */
+    /* Then, notify them one by one */
     while (!IsListEmpty(&CopyList))
     {
         NextEntry = RemoveHeadList(&CopyList);
index 3fc954d..061e671 100644 (file)
@@ -489,7 +489,7 @@ CreateNewVolumeName(OUT PUNICODE_STRING VolumeName,
         return Status;
     }
 
-    /* Size for volume namespace, litteral GUID, and null char */
+    /* Size for volume namespace, literal GUID, and null char */
     VolumeName->MaximumLength = 0x14 + 0x4C + sizeof(UNICODE_NULL);
     VolumeName->Buffer = AllocatePool(0x14 + 0x4C + sizeof(UNICODE_NULL));
     if (!VolumeName->Buffer)
index 3b1ccbd..8ea6590 100644 (file)
@@ -54,7 +54,7 @@ HidClassFDO_QueryCapabilities(
     KeInitializeEvent(&Event, NotificationEvent, FALSE);
 
     //
-    // now allocte the irp
+    // now allocate the irp
     //
     Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE);
     if (!Irp)
index b86c7d7..e007d28 100644 (file)
@@ -218,7 +218,7 @@ i8042PowerWorkItem(
 
                if (DeviceExtension->PowerInterfaceName.MaximumLength == 0)
                {
-                       /* We have never registred this interface ; do it */
+                       /* We have never registered this interface ; do it */
                        Status = IoRegisterDeviceInterface(
                                DeviceExtension->Common.Pdo,
                                &GUID_DEVICE_SYS_BUTTON,
@@ -247,7 +247,7 @@ i8042PowerWorkItem(
                                return;
                        }
                }
-               /* Enable the interface. This leads to receving a IOCTL_GET_SYS_BUTTON_CAPS,
+               /* Enable the interface. This leads to receiving a IOCTL_GET_SYS_BUTTON_CAPS,
                 * so we can report new capability */
                Status = IoSetDeviceInterfaceState(
                                &DeviceExtension->PowerInterfaceName,
index 3adb2d4..fd0a0d0 100644 (file)
@@ -2,7 +2,7 @@
  * PROJECT:     ReactOS i8042 (ps/2 keyboard-mouse controller) driver
  * LICENSE:     GPL - See COPYING in the top level directory
  * FILE:        drivers/input/i8042prt/misc.c
- * PURPOSE:     Misceallenous operations
+ * PURPOSE:     Miscellaneous operations
  * PROGRAMMERS: Copyright 2006-2007 Hervé Poussineau (hpoussin@reactos.org)
  */
 
index d4eceda..c18b0c7 100644 (file)
@@ -707,7 +707,7 @@ ClassAddDevice(
        Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
 
        /* Register interface ; ignore the error (if any) as having
-        * a registred interface is not so important... */
+        * a registered interface is not so important... */
        Status = IoRegisterDeviceInterface(
                Pdo,
                &GUID_DEVINTERFACE_KEYBOARD,
index ce0db80..88e99e4 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS Keyboard class driver
  * FILE:            drivers/input/kbdclass/misc.c
- * PURPOSE:         Misceallenous operations
+ * PURPOSE:         Miscellaneous operations
  *
  * PROGRAMMERS:     Hervé Poussineau (hpoussin@reactos.org)
  */
index 7d88221..93552d3 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS Mouse class driver
  * FILE:            drivers/input/mouclass/misc.c
- * PURPOSE:         Misceallenous operations
+ * PURPOSE:         Miscellaneous operations
  *
  * PROGRAMMERS:     Hervé Poussineau (hpoussin@reactos.org)
  */
index 7cbac1e..8628c58 100644 (file)
@@ -683,7 +683,7 @@ ClassAddDevice(
        Fdo->Flags &= ~DO_DEVICE_INITIALIZING;
 
        /* Register interface ; ignore the error (if any) as having
-        * a registred interface is not so important... */
+        * a registered interface is not so important... */
        Status = IoRegisterDeviceInterface(
                Pdo,
                &GUID_DEVINTERFACE_MOUSE,
index 0465e83..9b8e74d 100644 (file)
@@ -2,7 +2,7 @@
  * PROJECT:     ReactOS Serial mouse driver
  * LICENSE:     GPL - See COPYING in the top level directory
  * FILE:        drivers/input/sermouse/fdo.c
- * PURPOSE:     Misceallenous operations
+ * PURPOSE:     Miscellaneous operations
  * PROGRAMMERS: Copyright 2005-2006 Hervé Poussineau (hpoussin@reactos.org)
  */
 
index 1de8de7..38d1bd5 100644 (file)
@@ -21,7 +21,7 @@
      receiving mouse information (and if you are making mouse then send out
      7 databits and 2 stop bits). 
      The byte marked with 1. is send first, then the others. The bit D6 in
-     the first byte is used for syncronizing the software to mouse packets
+     the first byte is used for synchronizing the software to mouse packets
      if it goes out of sync. 
 
       LB is the state of the left button (1 means pressed down)
@@ -37,7 +37,7 @@
  Logitech serial mouse
 
    Logitech uses the Microsoft serial mouse protocol in their mouses (for
-   example Logitech Pilot mouse and others). The origianal protocol supports
+   example Logitech Pilot mouse and others). The original protocol supports
    only two buttons, but logitech as added third button to some of their
    mouse models. To make this possible logitech has made one extension to
    the protocol. 
index 575a5a4..3225537 100644 (file)
@@ -2351,7 +2351,7 @@ KsMergeAutomationTables(
 
         if (AutomationTableA && AutomationTableB)
         {
-            // FIXME handle different propery item sizes
+            // FIXME handle different property item sizes
             ASSERT(AutomationTableA->PropertyItemSize == AutomationTableB->PropertyItemSize);
         }
 
index 7b397a6..370c3e4 100644 (file)
@@ -191,7 +191,7 @@ ClockPropertyResolution(
     /* sanity check */
     ASSERT(ObjectHeader);
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     Clock = (PKSICLOCK)ObjectHeader->ObjectType;
 
     Resolution->Error = Clock->DefaultClock->Error;
@@ -224,7 +224,7 @@ ClockPropertyState(
     /* sanity check */
     ASSERT(ObjectHeader);
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     Clock = (PKSICLOCK)ObjectHeader->ObjectType;
 
     *State = Clock->DefaultClock->State;
index fba093e..098a221 100644 (file)
@@ -670,7 +670,7 @@ IKsFilter_GetFilterFromIrp(
     /* get current irp stack */
     IoStack = IoGetCurrentIrpStackLocation(Irp);
 
-    /* santiy check */
+    /* sanity check */
     ASSERT(IoStack->FileObject != NULL);
 
     ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
@@ -870,7 +870,7 @@ KspHandleDataIntersection(
                DataRange->FormatSize, DataRange->SampleSize, DataRange->Alignment, DataRange->Flags, DataRange->Reserved, DataLength);
 
         /* FIXME implement KsPinDataIntersectionEx */
-        /* Call miniport's properitary handler */
+        /* Call miniport's proprietary handler */
         Status = This->Filter.Descriptor->PinDescriptors[Pin->PinId].IntersectHandler(&This->Filter,
                                                                                       Irp,
                                                                                       Pin,
index fe66ac4..46dddf4 100644 (file)
@@ -195,7 +195,7 @@ KsReadFile(
 
         if (Result && NT_SUCCESS(IoStatusBlock->Status))
         {
-            /* request was handeled and succeeded */
+            /* request was handled and succeeded */
             return STATUS_SUCCESS;
         }
     }
@@ -295,7 +295,7 @@ KsWriteFile(
 
         if (Result && NT_SUCCESS(IoStatusBlock->Status))
         {
-            /* request was handeled and succeeded */
+            /* request was handled and succeeded */
             return STATUS_SUCCESS;
         }
     }
@@ -574,7 +574,7 @@ KsStreamIo(
 
                     if (Ret)
                     {
-                        /* the request was handeled */
+                        /* the request was handled */
                         return IoStatusBlock->Status;
                     }
                 }
@@ -589,7 +589,7 @@ KsStreamIo(
 
                     if (Ret)
                     {
-                        /* the request was handeled */
+                        /* the request was handled */
                         return IoStatusBlock->Status;
                     }
                 }
index 258e7ea..5bf3274 100644 (file)
@@ -157,7 +157,7 @@ IKsPin_PinMasterClock(
     /* sanity check */
     ASSERT(ObjectHeader);
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
 
     /* sanity check */
@@ -276,7 +276,7 @@ IKsPin_PinStatePropertyHandler(
     /* get the object header */
     ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
 
     /* acquire control mutex */
@@ -358,7 +358,7 @@ IKsPin_PinAllocatorFramingPropertyHandler(
     /* get the object header */
     ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
 
     /* setting allocator flags is not supported */
@@ -429,7 +429,7 @@ IKsPin_PinDataFormatPropertyHandler(
     /* get the object header */
     ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
 
     /* acquire control mutex */
@@ -2007,7 +2007,7 @@ IKsPin_DispatchDeviceIoControl(
     /* get the object header */
     ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
 
-    /* locate ks pin implemention from KSPIN offset */
+    /* locate ks pin implementation from KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
 
     /* current irp stack */
@@ -2127,7 +2127,7 @@ IKsPin_Close(
     /* get the object header */
     ObjectHeader = (PKSIOBJECT_HEADER)IoStack->FileObject->FsContext2;
 
-    /* locate ks pin implemention fro KSPIN offset */
+    /* locate ks pin implementation fro KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(ObjectHeader->ObjectType, IKsPinImpl, Pin);
 
     if (This->Pin.Descriptor->Dispatch->Close)
@@ -2197,7 +2197,7 @@ IKsPin_DispatchCreateClock(
     /* sanity check */
     ASSERT(Pin);
 
-    /* locate ks pin implemention fro KSPIN offset */
+    /* locate ks pin implementation fro KSPIN offset */
     This = (IKsPinImpl*)CONTAINING_RECORD(Pin, IKsPinImpl, Pin);
 
     /* sanity check */
@@ -2514,19 +2514,19 @@ KspCreatePin(
     This->Pin.ResetState = KSRESET_END;
     This->Pin.ClientState = KSSTATE_STOP;
 
-    /* intialize allocator create item */
+    /* initialize allocator create item */
     CreateItem[0].Context = (PVOID)&This->Pin;
     CreateItem[0].Create = IKsPin_DispatchCreateAllocator;
     CreateItem[0].Flags = KSCREATE_ITEM_FREEONSTOP;
     RtlInitUnicodeString(&CreateItem[0].ObjectClass, KSSTRING_Allocator);
 
-    /* intialize clock create item */
+    /* initialize clock create item */
     CreateItem[1].Context = (PVOID)&This->Pin;
     CreateItem[1].Create = IKsPin_DispatchCreateClock;
     CreateItem[1].Flags = KSCREATE_ITEM_FREEONSTOP;
     RtlInitUnicodeString(&CreateItem[1].ObjectClass, KSSTRING_Clock);
 
-    /* intialize topology node create item */
+    /* initialize topology node create item */
     CreateItem[2].Context = (PVOID)&This->Pin;
     CreateItem[2].Create = IKsPin_DispatchCreateNode;
     CreateItem[2].Flags = KSCREATE_ITEM_FREEONSTOP;
index 276d932..1fd84ef 100644 (file)
@@ -104,7 +104,7 @@ KsRegisterWorker(
     if (!KsWorker)
         return STATUS_INSUFFICIENT_RESOURCES;
 
-    /* initialze the work ctx */
+    /* initialize the work ctx */
     ExInitializeWorkItem(&KsWorker->WorkItem, WorkItemRoutine, (PVOID)KsWorker);
     /* setup type */
     KsWorker->Type = WorkQueueType;
index 564ae35..496a3c4 100644 (file)
@@ -1,6 +1,6 @@
 #define MIXER_INTERRUPT_SETUP_REGISTER 0x80
 #define MIXER_DMA_SETUP_REGISTER                               0x81
-#define MIXER_INTERRUP_STATUS_REGISTEER        0x82
+#define MIXER_INTERRUPT_STATUS_REGISTEER       0x82
 
 void get_dma(SB16* sb16);
 unsigned char read_mixer(unsigned short base,unsigned char reg);
index 56b6c67..67b7c3b 100644 (file)
@@ -58,7 +58,7 @@ void sb16_play(WAVE_HDR* wave)
        sb16.buffer=((unsigned char*)tmp[i-1]);
 
    /*
-    * Because this is used by alomost every subsystem including irqs it
+    * Because this is used by almost every subsystem including irqs it
     * must be atomic. The following code sequence disables interrupts after
     * saving the previous state of the interrupt flag
     */
index 3f22704..fff6797 100644 (file)
@@ -182,7 +182,7 @@ static NTSTATUS ReceiveActivity( PAFD_FCB FCB, PIRP Irp ) {
             }
             else
             {
-                /* Unexpected disconnect by the remote host or initial read after a graceful disconnnect */
+                /* Unexpected disconnect by the remote host or initial read after a graceful disconnect */
                 Status = FCB->LastReceiveStatus;
             }
             NextIrp->IoStatus.Status = Status;
index 27f9150..e1c1fe2 100644 (file)
@@ -30,7 +30,7 @@ static NTSTATUS NTAPI SendComplete
 
     /*
      * The Irp parameter passed in is the IRP of the stream between AFD and
-     * TDI driver. It's not very usefull to us. We need the IRPs of the stream
+     * TDI driver. It's not very useful to us. We need the IRPs of the stream
      * between usermode and AFD. Those are chained from
      * FCB->PendingIrpList[FUNCTION_SEND] and you'll see them in the code
      * below as "NextIrp" ('cause they are the next usermode IRP to be
index d3b900e..8a7b7dc 100644 (file)
@@ -19,7 +19,7 @@
 /* Define NOCARD to test NDIS without a card */
 //#define NOCARD
 
-/* NE2000 sepcific constants */
+/* NE2000 specific constants */
 #define NIC_DATA            0x10    /* Data register */
 #define NIC_RESET           0x1F    /* Reset register */
 
index b93200d..5f707e5 100644 (file)
@@ -796,7 +796,7 @@ static NDIS_STATUS NTAPI MiniportSetInformation(
             Adapter->LookaheadSize = GenericULONG;
         break;
     case OID_802_3_MULTICAST_LIST:
-        /* Verify length. Must be multiplum of hardware address length */
+        /* Verify length. Must be multiple of hardware address length */
         if ((InformationBufferLength % DRIVER_LENGTH_OF_ADDRESS) != 0) {
             *BytesRead   = 0;
             *BytesNeeded = 0;
index 4d4921c..26a6527 100644 (file)
@@ -22,7 +22,7 @@
  *     09-Sep-2003 vizzini - Created
  *     10-Oct-2004 navaraf - Fix receive to work on VMware adapters (
  *                           need to set busmaster bit on PCI).
- *                         - Indicate receive completition.
+ *                         - Indicate receive completion.
  *                         - Implement packet transmitting.
  *                         - Don't read slot number from registry and
  *                           report itself as NDIS 5.0 miniport.
@@ -192,7 +192,7 @@ MiniportHandleInterrupt(
                   if (Descriptor->FLAGS2 & TD2_LCOL)
                     Adapter->Statistics.XmtLateCollisions++;
                   if (Descriptor->FLAGS2 & TD2_EXDEF)
-                    Adapter->Statistics.XmtExcessiveDefferals++;
+                    Adapter->Statistics.XmtExcessiveDeferrals++;
                   if (Descriptor->FLAGS2 & TD2_UFLO)
                     Adapter->Statistics.XmtBufferUnderflows++;
                   if (Descriptor->FLAGS2 & TD2_BUFF)
@@ -650,7 +650,7 @@ MiniportMediaDetectionTimer(
     IN PVOID SystemSpecific2,
     IN PVOID SystemSpecific3)
 /*
- * FUNCTION: Periodially query media state
+ * FUNCTION: Periodically query media state
  * ARGUMENTS:
  *     FunctionContext: Adapter context
  * NOTES:
index efa7d96..5389c3e 100644 (file)
@@ -41,7 +41,7 @@ typedef struct _ADAPTER_STATS
   ULONG XmtLossesOfCarrier;
   ULONG XmtCollisions;
   ULONG XmtLateCollisions;
-  ULONG XmtExcessiveDefferals;
+  ULONG XmtExcessiveDeferrals;
   ULONG XmtBufferUnderflows;
   ULONG XmtBufferErrors;
   ULONG XmtOneRetry;
index be79003..fc6352f 100644 (file)
@@ -365,7 +365,7 @@ typedef struct _RECEIVE_DESCRIPTOR
   USHORT MCNT;          /* message byte count ; always AND with 0x0fff */
   UCHAR  RPC;           /* runt packet count */
   UCHAR  RCC;           /* receive collision count */
-  ULONG  RES;           /* resereved */
+  ULONG  RES;           /* reserved */
 } RECEIVE_DESCRIPTOR, *PRECEIVE_DESCRIPTOR;
 
 /* receive descriptor flags */
index ced553a..86092e9 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ReactOS AMD PCNet Driver
  *
- * Copyright (C) 2000 Casper Hornstroup <chorns@users.sourceforge.net>
+ * Copyright (C) 2000 Casper Hornstrup <chorns@users.sourceforge.net>
  * Copyright (C) 2003 Vizzini <vizzini@plasmic.com>
  * Copyright (C) 2004 Filip Navara <navaraf@reactos.com>
  *
@@ -302,7 +302,7 @@ MiniportQueryInformation(
                        Adapter->Statistics.XmtLossesOfCarrier +
                        Adapter->Statistics.XmtCollisions +
                        Adapter->Statistics.XmtLateCollisions +
-                       Adapter->Statistics.XmtExcessiveDefferals +
+                       Adapter->Statistics.XmtExcessiveDeferrals +
                        Adapter->Statistics.XmtBufferUnderflows +
                        Adapter->Statistics.XmtBufferErrors;
         break;
index 622e72e..b249793 100644 (file)
 //EEPROM Commands
 #define EE_READ_CMD     0x06
 
-#define RSR_MAR   0x8000  //Mulicast receive
+#define RSR_MAR   0x8000  //Multicast receive
 #define RSR_PAM   0x4000  //Physical address match (directed packet)
 #define RSR_BAR   0x2000  //Broadcast receive
 #define RSR_ISE   0x0020  //Invalid symbol
index 39494ed..deaf576 100644 (file)
@@ -483,7 +483,7 @@ ProtocolStatusComplete(
 
 /*!
  * @brief Called by NDIS during NdisRegisterProtocol to set up initial
- *           bindings, and periodically thereafer as new adapters come online
+ *           bindings, and periodically thereafter as new adapters come online
  *
  * @param Status - Return value to NDIS
  * @param BindContext - Handle provided by NDIS to track pending binding operations
index 4d5acf8..118ee8c 100644 (file)
@@ -141,7 +141,7 @@ VOID FreeNdisPacketX
         exFreePool(Data);
     }
 
-    /* Finally free the NDIS packet discriptor */
+    /* Finally free the NDIS packet descriptor */
     NdisFreePacket(Packet);
     UntrackFL(File,Line,Packet);
 }
index 318c9d8..4c00fa9 100644 (file)
@@ -94,7 +94,7 @@ UINT CopyBufferToBufferChain(
 
         DstSize -= BytesToCopy;
         if (DstSize == 0) {
-            /* No more bytes in desination buffer. Proceed to
+            /* No more bytes in destination buffer. Proceed to
                the next buffer in the destination buffer chain */
             NdisGetNextBuffer(DstBuffer, &DstBuffer);
             if (!DstBuffer)
index 2a0f8df..ad36292 100644 (file)
@@ -11,7 +11,7 @@
  *       Whenever a read operation is performed, the NDIS library allocates space and returns
  *       it.  A linked list is kept associated with every handle of the memory allocated to
  *       it.  When the handle is closed, the resources are systematically released.
- *     - The NDIS_HANDLE Configuraiton context is no longer a registry handle.  An opaque struct
+ *     - The NDIS_HANDLE Configuration context is no longer a registry handle.  An opaque struct
  *       had to be created to allow for resource tracking.  This means that Miniports cannot just
  *       pass this NDIS_HANDLE to things like ZwQueryValueKey().  I don't thknk they do (they
  *       certainly should not), but it should be kept in mind.
index bbde5bd..1eb857c 100644 (file)
@@ -20,7 +20,7 @@ EthCreateFilter(
 /*
  * FUNCTION: Construct an ethernet filter
  * ARGUMENTS:
- *     MaximumMulticastAddresses: Maximum number of multicast adderesses.
+ *     MaximumMulticastAddresses: Maximum number of multicast addresses.
  *     AdapterAddress: Current ethernet address of the adapter.
  *     Filter: The created filter on successful return.
  * RETURNS:
index 4a57149..faee64a 100644 (file)
@@ -191,7 +191,7 @@ IO_ALLOCATION_ACTION NTAPI NdisSubordinateMapRegisterCallback (
 /*
  * FUNCTION: Called back during reservation of map registers
  * ARGUMENTS:
- *     DeviceObject: Device object of the deivce setting up DMA
+ *     DeviceObject: Device object of the device setting up DMA
  *     Irp: Reserved; must be ignored
  *     MapRegisterBase: Map registers assigned for transfer
  *     Context: LOGICAL_ADAPTER object of the requesting miniport
@@ -221,7 +221,7 @@ IO_ALLOCATION_ACTION NTAPI NdisBusMasterMapRegisterCallback (
 /*
  * FUNCTION: Called back during reservation of map registers
  * ARGUMENTS:
- *     DeviceObject: Device object of the deivce setting up DMA
+ *     DeviceObject: Device object of the device setting up DMA
  *     Irp: Reserved; must be ignored
  *     MapRegisterBase: Map registers assigned for transfer
  *     Context: LOGICAL_ADAPTER object of the requesting miniport
@@ -595,7 +595,7 @@ NdisMStartBufferPhysicalMapping(
  * NOTES:
  *     - Must be called at IRQL <= DISPATCH_LEVEL
  *     - The basic idea:  call IoMapTransfer() in a loop as many times as it takes
- *       in order to map all of the virtual memory to physical memoroy readable
+ *       in order to map all of the virtual memory to physical memory readable
  *       by the device
  *     - The caller supplies storage for the physical address array.
  */
@@ -650,7 +650,7 @@ NdisMCompleteBufferPhysicalMapping(
  * ARGUMENTS:
  *     - MiniportAdapterHandle: handle originally input to MiniportInitialize
  *     - Buffer: NDIS_BUFFER to complete the mapping on
- *     - PhyscialMapRegister: the chosen map register
+ *     - PhysicalMapRegister: the chosen map register
  * NOTES:
  *     - May be called at IRQL <= DISPATCH_LEVEL
  */
index 7954174..09bb86c 100644 (file)
@@ -114,7 +114,7 @@ NdisWriteEventLogEntry(
  * ARGUMENTS:
  *     LogHandle: pointer to the driver object of the protocol logging the event
  *     EventCode: NDIS_STATUS_XXX describing the event
- *     UniqueEventValue: identifiees this instance of the error value
+ *     UniqueEventValue: identifies this instance of the error value
  *     NumStrings: number of strings in StringList
  *     StringList: list of strings to log
  *     DataSize: number of bytes in Data
index b967b27..5cc9201 100644 (file)
@@ -1886,7 +1886,7 @@ NdisIPnPStartDevice(
 /*
  * FUNCTION: Handle the PnP start device event
  * ARGUMENTS:
- *     DeviceObejct = Functional Device Object
+ *     DeviceObject = Functional Device Object
  *     Irp          = IRP_MN_START_DEVICE I/O request packet
  * RETURNS:
  *     Status of operation
@@ -2212,7 +2212,7 @@ NdisIPnPStopDevice(
 /*
  * FUNCTION: Handle the PnP stop device event
  * ARGUMENTS:
- *     DeviceObejct = Functional Device Object
+ *     DeviceObject = Functional Device Object
  *     Irp          = IRP_MN_STOP_DEVICE I/O request packet
  * RETURNS:
  *     Status of operation
@@ -2451,7 +2451,7 @@ NdisIAddDevice(
    * Get name of the Linkage registry key for our adapter. It's located under
    * the driver key for our driver and so we have basicly two ways to do it.
    * Either we can use IoOpenDriverRegistryKey or compose it using information
-   * gathered by IoGetDeviceProperty. I choosed the second because
+   * gathered by IoGetDeviceProperty. I chose the second because
    * IoOpenDriverRegistryKey wasn't implemented at the time of writing.
    */
 
index b68f7ea..c32bfd4 100644 (file)
@@ -775,7 +775,7 @@ NdisOpenAdapter(
  *     MediumArray            = Pointer to an array of NDIS_MEDIUMs called can support
  *     MediumArraySize        = Number of elements in MediumArray
  *     NdisProtocolHandle     = Handle returned by NdisRegisterProtocol
- *     ProtocolBindingContext = Pointer to caller suplied context area
+ *     ProtocolBindingContext = Pointer to caller supplied context area
  *     AdapterName            = Pointer to buffer with name of adapter
  *     OpenOptions            = Bitmask with flags passed to next-lower driver
  *     AddressingInformation  = Optional pointer to buffer with NIC specific information
index c27a511..8337fad 100644 (file)
@@ -232,7 +232,7 @@ NdisMSetPeriodicTimer(
  *     Timer: pointer to the timer object to set
  *     MillisecondsPeriod: period of the timer
  * NOTES:
- *     - Minimum predictible interval is ~10ms
+ *     - Minimum predictable interval is ~10ms
  *     - Must be called at IRQL <= DISPATCH_LEVEL
  */
 {
@@ -278,7 +278,7 @@ NdisMSetTimer(
  *     Timer: timer object to set
  *     MillisecondsToDelay: time to wait for the timer to expire
  * NOTES:
- *     - Minimum predictible interval is ~10ms
+ *     - Minimum predictable interval is ~10ms
  *     - Must be called at IRQL <= DISPATCH_LEVEL
  */
 {
@@ -323,7 +323,7 @@ NdisSetTimer(
  *     Timer: timer object to set
  *     MillisecondsToDelay: time to wait for the timer to expire
  * NOTES:
- *     - Minimum predictible interval is ~10ms
+ *     - Minimum predictable interval is ~10ms
  *     - Must be called at IRQL <= DISPATCH_LEVEL
  */
 {
index 4cbbec9..01b36a0 100644 (file)
@@ -107,7 +107,7 @@ GetPacketTypeFromHeaderBuffer(PLAN_ADAPTER Adapter,
     switch (Adapter->Media)
     {
         case NdisMedium802_3:
-            /* Ethernet and IEEE 802.3 frames can be destinguished by
+            /* Ethernet and IEEE 802.3 frames can be distinguished by
                looking at the IEEE 802.3 length field. This field is
                less than or equal to 1500 for a valid IEEE 802.3 frame
                and larger than 1500 is it's a valid EtherType value.
@@ -927,7 +927,7 @@ VOID NTAPI ProtocolBindAdapter(
     IN  PVOID          SystemSpecific2)
 /*
  * FUNCTION: Called by NDIS during NdisRegisterProtocol to set up initial
- *           bindings, and periodically thereafer as new adapters come online
+ *           bindings, and periodically thereafter as new adapters come online
  * ARGUMENTS:
  *     Status: Return value to NDIS
  *     BindContext: Handle provided by NDIS to track pending binding operations
index 9c4ad1c..7075e97 100644 (file)
@@ -341,7 +341,7 @@ struct ustat {
  *    separated swab functions from cpu_to_XX,
  *    to clean up support for bizarre-endian architectures.
  *
- * See asm-i386/byteorder.h and suches for examples of how to provide
+ * See asm-i386/byteorder.h and such for examples of how to provide
  * architecture-dependent optimized versions
  *
  */
@@ -1465,7 +1465,7 @@ typedef struct __wait_queue_head wait_queue_head_t;
 #endif
 
 /*
- * Macros for declaration and initialisaton of the datatypes
+ * Macros for declaration and initialisation of the datatypes
  */
 
 #if WAITQUEUE_DEBUG
@@ -1635,7 +1635,7 @@ typedef struct kmem_cache_s kmem_cache_t;
  * The first 3 are only valid when the allocator as been build
  * SLAB_DEBUG_SUPPORT.
  */
-#define        SLAB_DEBUG_FREE         0x00000100UL    /* Peform (expensive) checks on free */
+#define        SLAB_DEBUG_FREE         0x00000100UL    /* Perform (expensive) checks on free */
 #define        SLAB_DEBUG_INITIAL      0x00000200UL    /* Call constructor (as verifier) */
 #define        SLAB_RED_ZONE           0x00000400UL    /* Red zone objs in a cache */
 #define        SLAB_POISON             0x00000800UL    /* Poison objects */
@@ -1775,7 +1775,7 @@ extern void poll_freewait(poll_table* pt);
 
 
 /*
- * Scaleable version of the fd_set.
+ * Scalable version of the fd_set.
  */
 
 typedef struct {
index 5034e85..0611681 100644 (file)
@@ -1324,7 +1324,7 @@ struct tcp_opt {
 
 /* RTT measurement */
        __u8    backoff;        /* backoff                              */
-       __u32   srtt;           /* smothed round trip time << 3         */
+       __u32   srtt;           /* smoothed round trip time << 3                */
        __u32   mdev;           /* medium deviation                     */
        __u32   mdev_max;       /* maximal mdev for the last rtt period */
        __u32   rttvar;         /* smoothed mdev_max                    */
@@ -2109,10 +2109,10 @@ static __inline int tcp_sk_listen_hashfn(struct sock *sk)
                                 */
 
 #define TCP_SYN_RETRIES         5      /* number of times to retry active opening a
-                                * connection: ~180sec is RFC minumum   */
+                                * connection: ~180sec is RFC minimum   */
 
 #define TCP_SYNACK_RETRIES 5   /* number of times to retry passive opening a
-                                * connection: ~180sec is RFC minumum   */
+                                * connection: ~180sec is RFC minimum   */
 
 
 #define TCP_ORPHAN_RETRIES 7   /* number of times to retry on an orphaned
@@ -2808,7 +2808,7 @@ extern u32        __tcp_select_window(struct sock *sk);
 
 /* TCP timestamps are only 32-bits, this causes a slight
  * complication on 64-bit systems since we store a snapshot
- * of jiffies in the buffer control blocks below.  We decidely
+ * of jiffies in the buffer control blocks below.  We decidedly
  * only use of the low 32-bits of jiffies and hide the ugly
  * casts with the following macro.
  */
@@ -2984,7 +2984,7 @@ static __inline void tcp_cwnd_validate(struct sock *sk, struct tcp_opt *tp)
 #endif
 }
 
-/* Set slow start threshould and cwnd not falling to slow start */
+/* Set slow start threshold and cwnd not falling to slow start */
 static __inline void __tcp_enter_cwr(struct tcp_opt *tp)
 {
 #if 0
index fa77e9f..18c5da3 100644 (file)
@@ -117,7 +117,7 @@ enum {
 #define TCP_NODELAY            1       /* Turn off Nagle's algorithm. */
 #define TCP_MAXSEG             2       /* Limit MSS */
 #define TCP_CORK               3       /* Never send partially complete segments */
-#define TCP_KEEPIDLE           4       /* Start keeplives after this period */
+#define TCP_KEEPIDLE           4       /* Start keepalives after this period */
 #define TCP_KEEPINTVL          5       /* Interval between keepalives */
 #define TCP_KEEPCNT            6       /* Number of keepalives before death */
 #define TCP_SYNCNT             7       /* Number of SYN retransmits */
index ede93c9..6d86b67 100644 (file)
@@ -27,7 +27,7 @@
 #define DD_RAWIP_DEVICE_NAME    L"\\Device\\RawIp"
 
 /* For NDIS protocol registration */
-/* The DDK says you have to register with the name that's regstered with SCM, e.g. tcpip */
+/* The DDK says you have to register with the name that's registered with SCM, e.g. tcpip */
 #define IP_DEVICE_NAME          L"\\Device\\Ip"
 #define TCPIP_PROTOCOL_NAME     L"Tcpip"
 #endif /* _NTTEST_ */
index 70ba4ea..8d0f428 100644 (file)
@@ -265,7 +265,7 @@ typedef struct _CONNECTION_ENDPOINT {
     PADDRESS_FILE AddressFile;  /* Associated address file object (NULL if none) */
 
     /* Requests */
-    LIST_ENTRY ConnectRequest; /* Queued connect rqueusts */
+    LIST_ENTRY ConnectRequest; /* Queued connect requests */
     LIST_ENTRY ListenRequest;  /* Queued listen requests */
     LIST_ENTRY ReceiveRequest; /* Queued receive requests */
     LIST_ENTRY SendRequest;    /* Queued send requests */
index d23da2c..4fed055 100644 (file)
@@ -95,7 +95,7 @@ UINT CopyBufferToBufferChain(
 
         DstSize -= BytesToCopy;
         if (DstSize == 0) {
-            /* No more bytes in desination buffer. Proceed to
+            /* No more bytes in destination buffer. Proceed to
                the next buffer in the destination buffer chain */
             NdisGetNextBuffer(DstBuffer, &DstBuffer);
             if (!DstBuffer)
@@ -380,6 +380,6 @@ VOID FreeNdisPacket
         ExFreePoolWithTag(Data, PACKET_BUFFER_TAG);
     }
 
-    /* Finally free the NDIS packet discriptor */
+    /* Finally free the NDIS packet descriptor */
     NdisFreePacket(Packet);
 }
index 9315e1a..bb3625c 100644 (file)
@@ -324,7 +324,7 @@ NTSTATUS DispTdiAssociateAddress(
   if (Connection->AddressFile) {
     ObDereferenceObject(FileObject);
     UnlockObject(Connection, OldIrql);
-    TI_DbgPrint(MID_TRACE, ("An address file is already asscociated.\n"));
+    TI_DbgPrint(MID_TRACE, ("An address file is already associated.\n"));
     return STATUS_INVALID_PARAMETER;
   }
 
index f6f7dbf..765df57 100644 (file)
@@ -140,7 +140,7 @@ UINT CopyBufferToBufferChain(
 
         DstSize -= BytesToCopy;
         if (DstSize == 0) {
-            /* No more bytes in desination buffer. Proceed to
+            /* No more bytes in destination buffer. Proceed to
                the next buffer in the destination buffer chain */
             NdisGetNextBuffer(DstBuffer, &DstBuffer);
             if (!DstBuffer)
@@ -484,7 +484,7 @@ VOID FreeNdisPacketX
         exFreePool(Data);
     }
 
-    /* Finally free the NDIS packet discriptor */
+    /* Finally free the NDIS packet descriptor */
     UntrackFL(File,Line,Packet);
     NdisFreePacket(Packet);
 }
index 326d6dd..14051b5 100644 (file)
@@ -29,4 +29,4 @@ static void RunTest() {
     _AssertEqualValue(STATUS_SUCCESS, Status);
 }
 
-_Dispatcher(IpreceiveTest, "IPReceive");
+_Dispatcher(IPReceiveTest, "IPReceive");
index afc5a3f..d302db4 100644 (file)
@@ -9,7 +9,7 @@ TdiMapBuffer (
        IN PMDL MdlChain
        )
 {
-       /* This function is absolete */
+       /* This function is obsolete */
 }
 
 
index bf09f1a..a424350 100644 (file)
@@ -68,7 +68,7 @@
 #define LPGETSTATUS 0x060b  /* return LP_S(minor) */
 #define LPRESET     0x060c  /* reset printer */
 
-/* timeout for print'ing a timeout, in jiffies (100ths of a second).
+/* timeout for printing a timeout, in jiffies (100ths of a second).
    This is also used for re-checking error conditions if LP_ABORT is
    not set.  This is the default behavior. */
 
index fdcd4b1..8259060 100644 (file)
@@ -186,7 +186,7 @@ FdoStartDevice(IN PDEVICE_OBJECT DeviceObject,
                 break;
 
             default:
-                DPRINT1("Other ressource: \n");
+                DPRINT1("Other resource: \n");
                 break;
         }
     }
index 4ec8725..1428a91 100644 (file)
@@ -68,7 +68,7 @@ typedef struct _SAC_SYSTEM_INFORMATION
     ULONG RemainingSize;
     ULONG ProcessDataOffset;
     // SYSTEM_PAGEFILE_INFORMATION PageFileInfo;
-    // SYSTEM_PROCESS_INFORMATINO ProcessInfo;
+    // SYSTEM_PROCESS_INFORMATION ProcessInfo;
 } SAC_SYSTEM_INFORMATION, *PSAC_SYSTEM_INFORMATION;
 
 NTSTATUS
index ffc4b9d..86b445e 100644 (file)
@@ -206,7 +206,7 @@ ConMgrInitialize(VOID)
             /* Set it as the current and SAC channel */
             SacChannel = CurrentChannel = FoundChannel;
 
-            /* Diasable writes for now and clear the display */
+            /* Disable writes for now and clear the display */
             _InterlockedExchange(&FoundChannel->WriteEnabled, FALSE);
             Status = HeadlessDispatch(HeadlessCmdClearDisplay, NULL, 0, NULL, NULL);
             if (!NT_SUCCESS(Status))
index d1cda63..6094418 100644 (file)
@@ -114,7 +114,7 @@ UnloadHandler(IN PDRIVER_OBJECT DriverObject)
     PDEVICE_OBJECT DeviceObject, NextDevice;
     SAC_DBG(SAC_DBG_ENTRY_EXIT, "SAC UnloadHandler: Entering.\n");
 
-    /* Go overy ever device part of the driver */
+    /* Go over every device part of the driver */
     DeviceObject = DriverObject->DeviceObject;
     while (DeviceObject)
     {
index 4def83b..1d3afa0 100644 (file)
@@ -71,7 +71,7 @@ FreeMemoryManagement(VOID)
     {
         ASSERT(GlobalMemoryList->Signature == GLOBAL_MEMORY_SIGNATURE);
 
-        /* While outisde of the lock, save the next list and free this one */
+        /* While outside of the lock, save the next list and free this one */
         KeReleaseSpinLock(&MemoryLock, OldIrql);
         Next = GlobalMemoryList->Next;
         ExFreePoolWithTag(GlobalMemoryList, 0);
@@ -250,7 +250,7 @@ MyFreePool(IN PVOID *Block)
     InterlockedIncrement(&TotalFrees);
     InterlockedExchangeAdd(&TotalBytesFreed, LocalDescriptor->Size);
 
-    /* Acquire the memory alliocation lock */
+    /* Acquire the memory allocation lock */
     GlobalDescriptor = GlobalMemoryList;
     KeAcquireSpinLock(&MemoryLock, &OldIrql);
 
index c01c8d1..602afd0 100644 (file)
@@ -1245,7 +1245,7 @@ extern ULONG Utf8ConversionBufferSize;
 extern BOOLEAN CommandConsoleLaunchingEnabled;
 
 //
-// Function to initailize a SAC Semaphore Lock
+// Function to initialize a SAC Semaphore Lock
 //
 FORCEINLINE
 VOID
@@ -1394,8 +1394,8 @@ typedef enum _VT_ANSI_ATTRIBUTES
     AlternateFont2,
     AlternateFont3,
     Alternatefont4,
-    AlteronateFont5,
-    AlteronateFont6,
+    AlternateFont5,
+    AlternateFont6,
     AlternateFont7,
     AlternateFont8,
     AlternateFont9,
index 541fa99..791bb32 100644 (file)
@@ -699,10 +699,10 @@ InitializeMachineInformation(VOID)
     RTL_OSVERSIONINFOEXW VersionInformation;
     SAC_DBG(SAC_DBG_ENTRY_EXIT, "SAC Initialize Machine Information : Entering.\n");
 
-    /* Don't do anything if we already quried this */
+    /* Don't do anything if we already queried this */
     if (MachineInformation)
     {
-        SAC_DBG(SAC_DBG_MACHINE, "SAC Initialize Machine Information:: MachineInformationBuffer already initialzied.\n");
+        SAC_DBG(SAC_DBG_MACHINE, "SAC Initialize Machine Information:: MachineInformationBuffer already initialized.\n");
         return;
     }
 
@@ -893,7 +893,7 @@ InitializeMachineInformation(VOID)
         SuiteTypeMessage = SAC_NO_SUITE_MSG;
     }
 
-    /* Get the string that correponds to the SKU type */
+    /* Get the string that corresponds to the SKU type */
     MessageBuffer = GetMessage(SuiteTypeMessage);
     if (!MessageBuffer)
     {
@@ -1058,7 +1058,7 @@ VOID
 NTAPI
 InitializeCmdEventInfo(VOID)
 {
-    /* Check if we were already initailized */
+    /* Check if we were already initialized */
     if (HaveUserModeServiceCmdEventInfo)
     {
         /* Full state expected */
@@ -1236,7 +1236,7 @@ GetMessageLineCount(IN ULONG MessageIndex)
     Buffer = GetMessage(MessageIndex);
     if (Buffer)
     {
-        /* Scan it looking for new lines, and increment the conut each time */
+        /* Scan it looking for new lines, and increment the count each time */
         while (*Buffer) if (*Buffer++ == L'\n') ++LineCount;
     }
 
index ce45af2..27cd339 100644 (file)
@@ -887,7 +887,7 @@ VTUTF8ChannelOFlush(IN PSAC_CHANNEL Channel)
         Overflow = TRUE;
     }
 
-    /* Everything is done, set the positition one last time */
+    /* Everything is done, set the position one last time */
     Position[1] = Channel->CursorRow;
     Position[0] = Channel->CursorCol;
     Status = VTUTF8ChannelAnsiDispatch(Channel,
index 9758f23..8541da1 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         ReactOS Serial enumerator driver
  * FILE:            drivers/dd/serenum/misc.c
- * PURPOSE:         Misceallenous operations
+ * PURPOSE:         Miscellaneous operations
  *
  * PROGRAMMERS:     Hervé Poussineau (hpoussin@reactos.com)
  */
index b684c36..36df0a1 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         Serial port driver
  * FILE:            drivers/dd/serial/misc.c
- * PURPOSE:         Misceallenous operations
+ * PURPOSE:         Miscellaneous operations
  *
  * PROGRAMMERS:     Hervé Poussineau (hpoussin@reactos.org)
  */
index 1da677b..69ddd19 100644 (file)
@@ -757,7 +757,7 @@ Arguments:
     PortDeviceObject - to connect to SCSI port driver.
     DeviceCount - Number of previously installed CDROMs.
     PortCapabilities - Pointer to structure returned by SCSI port
-        driver describing adapter capabilites (and limitations).
+        driver describing adapter capabilities (and limitations).
     LunInfo - Pointer to configuration information for this device.
 
 Return Value:
@@ -1289,7 +1289,7 @@ Return Value:
             if (NT_SUCCESS(status) || (status == STATUS_NO_MEDIA_IN_DEVICE)) {
 
                 //
-                // Using Read CD precludes issueing a mode select to
+                // Using Read CD precludes issuing a mode select to
                 // set the user data size. So, no buffer copy is
                 // necessary.
                 //
@@ -1408,7 +1408,7 @@ ScsiCdRomStartIo(
 
             Irp->IoStatus.Status = STATUS_VERIFY_REQUIRED;
 
-            DebugPrint((2, "ScsiCdRomStartIo: [%lx] Calling UpdateCapcity - "
+            DebugPrint((2, "ScsiCdRomStartIo: [%lx] Calling UpdateCapacity - "
                            "ioctl event = %lx\n",
                         Irp,
                         nextIrpStack->Parameters.Others.Argument1
@@ -2466,7 +2466,7 @@ ScsiCdRomStartIo(
             cdb->SUBCHANNEL.SubQ = CDB_SUBCHANNEL_BLOCK;
 
             //
-            // Specify format of informatin to return
+            // Specify format of information to return
             //
 
             cdb->SUBCHANNEL.Format = inputBuffer->Format;
index 10404ee..cbf3efb 100644 (file)
@@ -268,7 +268,7 @@ Arguments:
     PortDeviceObject - to connect to SCSI port driver.
     DeviceCount - Number of previously installed CDROMs.
     PortCapabilities - Pointer to structure returned by SCSI port
-        driver describing adapter capabilites (and limitations).
+        driver describing adapter capabilities (and limitations).
     LunInfo - Pointer to configuration information for this device.
 
 Return Value:
@@ -749,7 +749,7 @@ Return Value:
 
             //
             // the drive is target defect managed, and supports random writes
-            // on sector-aligment.  allow writes to occur by setting the error
+            // on sector-alignment.  allow writes to occur by setting the error
             // handler to point to a private media change detection handler.
             //
 
@@ -1478,7 +1478,7 @@ CdRomStartIo(
             Irp->IoStatus.Status = STATUS_VERIFY_REQUIRED;
 
             TraceLog((CdromDebugTrace,
-                        "CdRomStartIo: [%p] Calling UpdateCapcity - "
+                        "CdRomStartIo: [%p] Calling UpdateCapacity - "
                         "ioctl event = %p\n",
                         Irp,
                         nextIrpStack->Parameters.Others.Argument1
@@ -2832,7 +2832,7 @@ CdRomStartIo(
             cdb->SUBCHANNEL.SubQ = CDB_SUBCHANNEL_BLOCK;
 
             //
-            // Specify format of informatin to return
+            // Specify format of information to return
             //
 
             cdb->SUBCHANNEL.Format = inputBuffer->Format;
@@ -5625,7 +5625,7 @@ CdRomCreateWellKnownName(
 Routine Description:
 
     This routine creates a symbolic link to the cdrom device object
-    under \dosdevices.  The number of the cdrom device does not neccessarily
+    under \dosdevices.  The number of the cdrom device does not necessarily
     match between \dosdevices and \device, but usually will be the same.
 
     Saves the buffer
@@ -5767,7 +5767,7 @@ Arguments:
 
     ParameterName - parameter name to look up
 
-    ParameterValuse - default parameter value
+    ParameterValue - default parameter value
 
 Return Value:
 
@@ -5843,7 +5843,7 @@ Arguments:
 
     ParameterName - parameter name
 
-    ParameterValuse - parameter value
+    ParameterValue - parameter value
 
 Return Value:
 
@@ -6641,7 +6641,7 @@ CdRomErrorHandler(
         //      SCSI_SENSE_NOT_READY/SCSI_ADSENSE_NO_MEDIA_IN_DEVICE
         //
         //  These drives should not pass WHQL certification due
-        //  to this discrepency.
+        //  to this discrepancy.
         //
         //  However, we have to retry on 2/4/0 (Not ready, LUN not ready,
         //  no info) and also 3/2/0 (no seek complete).
@@ -6653,7 +6653,7 @@ CdRomErrorHandler(
         //  (0x01) in order to comply with WHQL standards.
         //
         //  The default retry timeout of one second is acceptable to balance
-        //  these discrepencies.  don't modify the status, though....
+        //  these discrepancies.  don't modify the status, though....
         //
 
         if (((sense->SenseKey & 0xf) == SCSI_SENSE_NOT_READY) &&
index 9bd9c2e..83db03c 100644 (file)
@@ -246,7 +246,7 @@ typedef struct _CDROM_DATA {
     UCHAR   Rpc0SystemRegion;           // bitmask, one means prevent play
     UCHAR   Rpc0SystemRegionResetCount;
 
-    ULONG   Rpc0RetryRegistryCallback;   // one until initial region choosen
+    ULONG   Rpc0RetryRegistryCallback;   // one until initial region chosen
 
     KMUTEX  Rpc0RegionMutex;
 
index 47cc948..249c54d 100644 (file)
@@ -332,7 +332,7 @@ TorisanChanger_devdesc   = "Torisan CD-ROM Changer"
 wearnes_devdesc          = "Wearnes CD-ROM Drive"
 gencdrom_devdesc         = "CD-ROM Drive"
 
-;; Mitsumi Friendly name explictly listed
+;; Mitsumi Friendly name explicitly listed
 Mitsumi_Generic_FriendlyName = "Mitsumi CD-ROM Drive"
 
 ;; Service descriptions
index cecd8ea..0c6d25d 100644 (file)
@@ -51,7 +51,7 @@ CLASSPNP_SCAN_FOR_SPECIAL_INFO CdromHackItems[] = {
     // these hitachi drives don't work properly in PIO mode
     { "HITACHI ", "CDR-1750S"                      , NULL,   0x0004 },
     { "HITACHI ", "CDR-3650/1650S"                 , NULL,   0x0004 },
-    // this particular gem doesn't automatcially spin up
+    // this particular gem doesn't automatically spin up
     // on some media access commands.
     { ""        , "HITACHI GD-2000"                , NULL,   0x0008 },
     { ""        , "HITACHI DVD-ROM GD-2000"        , NULL,   0x0008 },
index f371087..7dcc361 100644 (file)
@@ -865,7 +865,7 @@ CdRomUpdateMmcDriveCapabilitiesCompletion(
     LARGE_INTEGER delay;
 
     
-    // completion routine should retry as neccessary.
+    // completion routine should retry as necessary.
     // when success, clear the flag to allow startio to proceed.
     // else fail original request when retries are exhausted.
 
@@ -1087,7 +1087,7 @@ CdRomUpdateMmcDriveCapabilities(
     ASSERT(Context == NULL);
 
     //
-    // NOTE: a remove lock is unneccessary, since the delayed irp
+    // NOTE: a remove lock is unnecessary, since the delayed irp
     // will have said lock held for itself, preventing a remove.
     //
     CdRomPrepareUpdateCapabilitiesIrp(Fdo);
index 6683074..0a4c3d7 100644 (file)
@@ -853,7 +853,7 @@ Routine Description:
 
     This routine builds and sends a request to the port driver to
     get a pointer to a structure that describes the adapter's
-    capabilities/limitations. This routine is sychronous.
+    capabilities/limitations. This routine is synchronous.
 
 Arguments:
 
@@ -1401,7 +1401,7 @@ StartUnit(
 Routine Description:
 
     Send command to SCSI unit to start or power up.
-    Because this command is issued asynchronounsly, that is, without
+    Because this command is issued asynchronously, that is, without
     waiting on it to complete, the IMMEDIATE flag is not set. This
     means that the CDB will not return until the drive has powered up.
     This should keep subsequent requests from being submitted to the
@@ -1537,7 +1537,7 @@ ScsiClassAsynchronousCompletion(
 Routine Description:
 
     This routine is called when an asynchronous I/O request
-    which was issused by the class driver completes.  Examples of such requests
+    which was issued by the class driver completes.  Examples of such requests
     are release queue or START UNIT. This routine releases the queue if
     necessary.  It then frees the context and the IRP.
 
@@ -1631,7 +1631,7 @@ Arguments:
 
     DeviceObject - Pointer to the class device object to be addressed.
 
-    Irp - Pointer to Irp the orginal request.
+    Irp - Pointer to Irp the original request.
 
 Return Value:
 
@@ -1691,9 +1691,9 @@ Return Value:
             DebugPrint((1,"ScsiClassSplitRequest: Can't allocate Irp\n"));
 
             //
-            // If an Irp can't be allocated then the orginal request cannot
+            // If an Irp can't be allocated then the original request cannot
             // be executed.  If this is the first request then just fail the
-            // orginal request; otherwise just return.  When the pending
+            // original request; otherwise just return.  When the pending
             // requests complete, they will complete the original request.
             // In either case set the IRP status to failure.
             //
@@ -2239,7 +2239,7 @@ Return Value:
     //
     // NOTICE:  The SCSI-II specification indicates that this field should be
     // zero; however, some target controllers ignore the logical unit number
-    // in the INDENTIFY message and only look at the logical unit number field
+    // in the IDENTIFY message and only look at the logical unit number field
     // in the CDB.
     //
 
@@ -3044,7 +3044,7 @@ Return Value:
         //
         // If the error count has exceeded the error limit, then disable
         // any tagged queuing, multiple requests per lu queueing
-        // and sychronous data transfers.
+        // and synchronous data transfers.
         //
 
         if (deviceExtension->ErrorCount == 4) {
@@ -3177,7 +3177,7 @@ Arguments:
 
     Srb - Supplies a Pointer to the SCSI request block to be retied.
 
-    Assocaiated - Indicates this is an assocatied Irp created by split request.
+    Associated - Indicates this is an associated Irp created by split request.
 
 Return Value:
 
@@ -3531,7 +3531,7 @@ Arguments:
 
     Length - Supplies the length in bytes of the mode sense buffer.
 
-    PageMode - Supplies the page or pages of mode sense data to be retrived.
+    PageMode - Supplies the page or pages of mode sense data to be retrieved.
 
 Return Value:
 
@@ -3696,9 +3696,9 @@ Routine Description:
     the port driver.
 
 Arguments:
-    DeviceObject - Supplies the device object for the orginal request.
+    DeviceObject - Supplies the device object for the original request.
 
-    Srb - Supplies a paritally build ScsiRequestBlock.  In particular, the
+    Srb - Supplies a partially built ScsiRequestBlock.  In particular, the
         CDB and the SRB timeout value must be filled in.  The SRB must not be
         allocated from zone.
 
@@ -3972,7 +3972,7 @@ Return Value:
         nextStack = IoGetNextIrpStackLocation(Irp);
 
         //
-        // Validiate the user buffer.
+        // Validate the user buffer.
         //
 
         if (irpStack->Parameters.DeviceIoControl.InputBufferLength < sizeof(SCSI_PASS_THROUGH)){
@@ -3993,9 +3993,9 @@ Return Value:
         scsiPass->Lun = deviceExtension->Lun;
 
         //
-        // NOTICE:  The SCSI-II specificaiton indicates that this field
+        // NOTICE:  The SCSI-II specification indicates that this field
         // should be zero; however, some target controllers ignore the logical
-        // unit number in the INDENTIFY message and only look at the logical
+        // unit number in the IDENTIFY message and only look at the logical
         // unit number field in the CDB.
         //
 
@@ -4917,9 +4917,9 @@ Return Value:
     srb->Lun = deviceExtension->Lun;
 
     //
-    // NOTICE:  The SCSI-II specificaiton indicates that this field should be
+    // NOTICE:  The SCSI-II specification indicates that this field should be
     // zero; however, some target controllers ignore the logical unit number
-    // in the INDENTIFY message and only look at the logical unit number field
+    // in the IDENTIFY message and only look at the logical unit number field
     // in the CDB.
     //
 
index 0563702..a4eda12 100644 (file)
@@ -67,7 +67,7 @@ typedef struct _DISK_DATA {
     // Partition number of this device object
     //
     // This field is set during driver initialization or when the partition
-    // is created to identify a parition to the system.
+    // is created to identify a partition to the system.
     //
 
     ULONG PartitionNumber;
@@ -104,7 +104,7 @@ typedef struct _DISK_DATA {
     BOOLEAN BootIndicator;
 
     //
-    // DriveNotReady - inidicates that the this device is currenly not ready
+    // DriveNotReady - indicates that the this device is currently not ready
     // because there is no media in the device.
     //
 
@@ -119,7 +119,7 @@ typedef struct _DISK_DATA {
 } DISK_DATA, *PDISK_DATA;
 
 //
-// Define a general structure of identfing disk controllers with bad
+// Define a general structure of identifying disk controllers with bad
 // hardware.
 //
 
@@ -985,7 +985,7 @@ Return Value:
     status = ScsiClassReadDriveCapacity(deviceObject);
 
     //
-    // If the read capcity failed then just return, unless this is a
+    // If the read capacity failed then just return, unless this is a
     // removable disk where a device object partition needs to be created.
     //
 
@@ -1138,7 +1138,7 @@ CreatePartitionDeviceObjects(
         physicalDeviceExtension->DMByteSkew = physicalDeviceExtension->DMSkew * bytesPerSector;
 
         //
-        // Save away the infomation that we need, since this deviceExtension will soon be
+        // Save away the information that we need, since this deviceExtension will soon be
         // blown away.
         //
 
@@ -1247,7 +1247,7 @@ CreatePartitionDeviceObjects(
         if (!initData)
         {
             DebugPrint((1,
-                        "Disk.CreatePartionDeviceObjects - Allocation of initData failed\n"));
+                        "Disk.CreatePartitionDeviceObjects - Allocation of initData failed\n"));
 
             status = STATUS_INSUFFICIENT_RESOURCES;
             goto CreatePartitionDeviceObjectsExit;
@@ -1541,7 +1541,7 @@ Return Value:
         if (((PDISK_DATA)(deviceExtension + 1))->DriveNotReady) {
 
             //
-            // Flag this as a user errror so that a popup is generated.
+            // Flag this as a user error so that a popup is generated.
             //
 
             Irp->IoStatus.Status = STATUS_DEVICE_NOT_READY;
@@ -2106,7 +2106,7 @@ Return Value:
 
         } else if (NT_SUCCESS(status)) {
 
-            // ReadDriveCapacity was allright, create Partition Objects
+            // ReadDriveCapacity was alright, create Partition Objects
 
             if (physicalDiskData->PartitionListState == NotInitialized) {
                     status = CreatePartitionDeviceObjects(deviceExtension->PhysicalDevice, NULL);
@@ -2235,7 +2235,7 @@ Return Value:
         else if (diskData->PartitionNumber == 0) {
 
             //
-            // Paritition zero is not a partition so this is not a
+            // Partition zero is not a partition so this is not a
             // reasonable request.
             //
 
@@ -2313,7 +2313,7 @@ Return Value:
         else if (diskData->PartitionNumber == 0) {
 
             //
-            // Paritition zero is not a partition so this is not a
+            // Partition zero is not a partition so this is not a
             // reasonable request.
             //
 
@@ -2465,7 +2465,7 @@ Return Value:
             //
             // The disk layout has been returned in the partitionList
             // buffer.  Determine its size and, if the data will fit
-            // into the intermediatery buffer, return it.
+            // into the intermediary buffer, return it.
             //
 
             tempSize = FIELD_OFFSET(DRIVE_LAYOUT_INFORMATION,PartitionEntry[0]);
@@ -3020,7 +3020,7 @@ Return Value:
                                              0,
                                              TRUE);
 
-        DebugPrint((1, "ScsiDiskShutdownFlush: Synchonize cache sent. Status = %lx\n", status ));
+        DebugPrint((1, "ScsiDiskShutdownFlush: Synchronize cache sent. Status = %lx\n", status ));
     }
 
     //
@@ -3114,7 +3114,7 @@ Routine Description:
 
     The routine performs the necessary functions to determine if a device is
     really a floppy rather than a harddisk.  This is done by a mode sense
-    command.  First, a check is made to see if the medimum type is set.  Second
+    command.  First, a check is made to see if the media type is set.  Second
     a check is made for the flexible parameters mode page.  Also a check is
     made to see if the write cache is enabled.
 
@@ -3721,7 +3721,7 @@ EnumerateBusKey(
 Routine Description:
 
     The routine queries the registry to determine if this disk is visible to
-    the BIOS.  If the disk is visable to the BIOS, then the geometry information
+    the BIOS.  If the disk is visible to the BIOS, then the geometry information
     is updated.
 
 Arguments:
@@ -3998,7 +3998,7 @@ Return Value:
                 ExFreePool(keyData);
 
                 //
-                // Readjust indentifier string if necessary.
+                // Readjust identifier string if necessary.
                 //
 
                 if (!diskData->MbrCheckSum) {
@@ -4034,7 +4034,7 @@ UpdateGeometry(
 Routine Description:
 
     The routine queries the registry to determine if this disk is visible to
-    the BIOS.  If the disk is visable to the BIOS, then the geometry information
+    the BIOS.  If the disk is visible to the BIOS, then the geometry information
     is updated.
 
 Arguments:
@@ -4192,7 +4192,7 @@ diskMatched:
 
     //
     // Check that the data is long enough to hold a full resource descriptor,
-    // and that the last resouce list is device-specific and long enough.
+    // and that the last resource list is device-specific and long enough.
     //
 
     if (keyData->DataLength < sizeof(CM_FULL_RESOURCE_DESCRIPTOR) ||
@@ -4387,7 +4387,7 @@ Arguments:
 
 Return Value:
 
-    Returns the status of the opertion.
+    Returns the status of the operation.
 
 --*/
 {
@@ -4417,7 +4417,7 @@ Return Value:
     diskData = (PDISK_DATA) (deviceExtension + 1);
 
     //
-    // Read the drive capcity.  If that fails, give up.
+    // Read the drive capacity.  If that fails, give up.
     //
 
     status = ScsiClassReadDriveCapacity(deviceExtension->PhysicalDevice);
@@ -4427,7 +4427,7 @@ Return Value:
     }
 
     //
-    // Read the partition table agian.
+    // Read the partition table again.
     //
 
     status = IoReadPartitionTable(deviceExtension->PhysicalDevice,
@@ -4451,7 +4451,7 @@ Return Value:
         partitionNumber = diskData->PartitionNumber - 1;
 
         //
-        // Update the partition information for this parition.
+        // Update the partition information for this partition.
         //
 
         diskData->PartitionType =
@@ -4475,7 +4475,7 @@ Return Value:
     } else if (diskData->PartitionNumber != 0) {
 
         //
-        // The paritition does not exist.  Zero all the data.
+        // The partition does not exist.  Zero all the data.
         //
 
         diskData->PartitionType = 0;
@@ -4486,7 +4486,7 @@ Return Value:
     }
 
     //
-    // Free the parition list allocate by I/O read partition table.
+    // Free the partition list allocate by I/O read partition table.
     //
 
     ExFreePool(partitionList);
@@ -4572,7 +4572,7 @@ ScanForSpecial(
 
 Routine Description:
 
-    This function checks to see if an SCSI logical unit requires speical
+    This function checks to see if an SCSI logical unit requires special
     flags to be set.
 
 Arguments:
index 01c0a54..1e30a47 100644 (file)
@@ -534,7 +534,7 @@ Return Value:
     if(DasdAccessOnly) {
 
         //
-        // Inidicate that only RAW should be allowed to mount on the root
+        // Indicate that only RAW should be allowed to mount on the root
         // partition object.  This ensures that a file system can't doubly
         // mount on a super-floppy by mounting once on P0 and once on P1.
         //
@@ -706,7 +706,7 @@ Return Value:
         if (!NT_SUCCESS(status)) {
 
             //
-            // Flag this as a user errror so that a popup is generated.
+            // Flag this as a user error so that a popup is generated.
             //
 
             DebugPrint((1, "DiskReadWriteVerification: ReadyStatus is %lx\n",
@@ -3074,7 +3074,7 @@ Retry:
 
             //
             // Plan ahead and get the container's container before
-            // modifing the current size.
+            // modifying the current size.
             //
 
             nextContainerPartition =
@@ -3387,7 +3387,7 @@ Return Value:
                                          0,
                                          TRUE);
 
-        DebugPrint((1, "DiskShutdownFlush: Synchonize cache sent. Status = %lx\n", status ));
+        DebugPrint((1, "DiskShutdownFlush: Synchronize cache sent. Status = %lx\n", status ));
     }
 
     //
@@ -3713,7 +3713,7 @@ DiskIoctlVerify(
 
     IoFreeWorkItem(Context->WorkItem);
 
-    DebugPrint((1, "Disk.DiskIoctlVerify: Spliting up the request\n"));
+    DebugPrint((1, "Disk.DiskIoctlVerify: Splitting up the request\n"));
 
     //
     // Add disk offset to starting the sector
@@ -4015,7 +4015,7 @@ DiskSetSpecialHacks(
 
 Routine Description:
 
-    This function checks to see if an SCSI logical unit requires speical
+    This function checks to see if an SCSI logical unit requires special
     flags to be set.
 
 Arguments:
@@ -4964,7 +4964,7 @@ DiskSetInfoExceptionInformation(
 
     //
     // We will attempt (twice) to issue the mode select with the page.
-    // Make the setting persistant so that we don't have to turn it back
+    // Make the setting persistent so that we don't have to turn it back
     // on after a bus reset.
     //
 
@@ -5624,7 +5624,7 @@ Return Values:
     if (inputBufferLength < listSize) {
 
         //
-        // The remaning size of the input buffer not big enough to
+        // The remaining size of the input buffer not big enough to
         // hold the additional partition entries
         //
 
@@ -5635,7 +5635,7 @@ Return Values:
     }
 
     //
-    // Convert the parititon information structure into an extended
+    // Convert the partition information structure into an extended
     // structure.
     //
 
@@ -5782,7 +5782,7 @@ Return Values:
     if (inputBufferLength < listSize) {
 
         //
-        // The remaning size of the input buffer not big enough to
+        // The remaining size of the input buffer not big enough to
         // hold the additional partition entries
         //
 
@@ -6283,7 +6283,7 @@ DiskIoctlSetPartitionInfo(
     // The HAL routines IoGet- and IoSetPartitionInformation were
     // developed before support of dynamic partitioning and therefore
     // don't distinguish between partition ordinal (that is the order
-    // of a paritition on a disk) and the partition number.  (The
+    // of a partition on a disk) and the partition number.  (The
     // partition number is assigned to a partition to identify it to
     // the system.) Use partition ordinals for these legacy calls.
     //
@@ -6354,7 +6354,7 @@ DiskIoctlSetPartitionInfoEx(
     // The HAL routines IoGet- and IoSetPartitionInformation were
     // developed before support of dynamic partitioning and therefore
     // don't distinguish between partition ordinal (that is the order
-    // of a paritition on a disk) and the partition number.  (The
+    // of a partition on a disk) and the partition number.  (The
     // partition number is assigned to a partition to identify it to
     // the system.) Use partition ordinals for these legacy calls.
     //
index f47d41b..da24ffe 100644 (file)
@@ -209,7 +209,7 @@ typedef struct _DISK_DATA {
 
     //
     // ReadyStatus - STATUS_SUCCESS indicates that the drive is ready for
-    // use.  Any error status is to be returned as an explaination for why
+    // use.  Any error status is to be returned as an explanation for why
     // a request is failed.
     //
     // This was done solely for the zero-length partition case of having no
@@ -259,7 +259,7 @@ typedef struct _DISK_DATA {
 
 #if defined(_X86_)
     //
-    // This flag indiciates that a non-default geometry for this drive has
+    // This flag indicates that a non-default geometry for this drive has
     // already been determined by the disk driver.  This field is ignored
     // for removable media drives.
     //
@@ -301,7 +301,7 @@ typedef struct _DISK_DATA {
 
 } DISK_DATA, *PDISK_DATA;
 
-// Define a general structure of identfing disk controllers with bad
+// Define a general structure of identifying disk controllers with bad
 // hardware.
 //
 
index 28ec458..fbe334d 100644 (file)
@@ -1825,7 +1825,7 @@ Return Value:
 
     //
     // See if this is an IDE drive that supports SMART. If so enable SMART
-    // and then ensure that it suports the SMART READ STATUS command
+    // and then ensure that it supports the SMART READ STATUS command
     //
     status = DiskGetIdentifyInfo(FdoExtension,
                                  &supportFP);
@@ -1919,7 +1919,7 @@ Routine Description:
 
 
     When NT boots, failure prediction is not automatically enabled, although
-    it may have been persistantly enabled on a previous boot. Polling is also
+    it may have been persistently enabled on a previous boot. Polling is also
     not automatically enabled. When the first data block that accesses SMART
     such as SmartStatusGuid, SmartDataGuid, SmartPerformFunction, or
     SmartEventGuid is accessed then SMART is automatically enabled in the
index 53df096..ccfd8c0 100644 (file)
@@ -378,7 +378,7 @@ DiskScanBusDetectInfo(
 Routine Description:
 
     The routine queries the registry to determine which disks are visible to
-    the BIOS.  If a disk is visable to the BIOS then the geometry information
+    the BIOS.  If a disk is visible to the BIOS then the geometry information
     is updated with the disk's signature and MBR checksum.
 
 Arguments:
@@ -710,7 +710,7 @@ Arguments:
 
 Return Value:
 
-    Inidicates whether the "RealGeometry" in the data block is now valid.
+    Indicates whether the "RealGeometry" in the data block is now valid.
 
 --*/
 
@@ -910,7 +910,7 @@ Arguments:
 
 Return Value:
 
-    Returns the status of the opertion.
+    Returns the status of the operation.
 
 --*/
 {
index db65e10..a49597e 100644 (file)
@@ -57,7 +57,7 @@ Routine Description:
 
     This routine will return the current layout information for the disk.
     If the cached information is still valid then it will be returned, 
-    otherwise the layout will be retreived from the kernel and cached for 
+    otherwise the layout will be retrieved from the kernel and cached for 
     future use.
     
     This routine must be called with the partitioning lock held.  The 
index 27c0c92..8065fee 100644 (file)
@@ -363,7 +363,7 @@ Return Value:
     status = ClassReadDriveCapacity(Fdo);
 
     //
-    // If the read capcity failed then just return, unless this is a
+    // If the read capacity failed then just return, unless this is a
     // removable disk where a device object partition needs to be created.
     //
 
@@ -438,7 +438,7 @@ Return Value:
         fdoExtension->DMByteSkew = fdoExtension->DMSkew * bytesPerSector;
 
         //
-        // Save away the infomation that we need, since this deviceExtension will soon be
+        // Save away the information that we need, since this deviceExtension will soon be
         // blown away.
         //
 
@@ -495,7 +495,7 @@ Return Value:
     DiskCreateSymbolicLinks(Fdo);
 
     //
-    // Determine the type of disk and enable failure preiction in the hardware
+    // Determine the type of disk and enable failure prediction in the hardware
     // and enable failure prediction polling.
     //
 
index b310426..4716a31 100644 (file)
@@ -257,7 +257,7 @@ Notes:
     
     The call to StartNextPacket may occur before this routine is completed.
     the operational change notifications are informational in nature, and
-    while useful, are not neccessary to ensure proper operation.  For example,
+    while useful, are not necessary to ensure proper operation.  For example,
     if the device morphs to no longer supporting WRITE commands, all further
     write commands will fail.  There exists a small timing window wherein
     IOCTL_IS_DISK_WRITABLE may be called and get an incorrect response.  If
@@ -2039,7 +2039,7 @@ Routine Description:
     key "Autorun" in the service key (for legacy reasons), and then look in
     the device-specific key to potentially override that setting.
     
-    If MCN is to be enabled, all neccessary structures and memory are
+    If MCN is to be enabled, all necessary structures and memory are
     allocated and initialized.
     
     This routine MUST be called only from the ClassInit() callback.
index 1713723..da6603e 100644 (file)
@@ -772,7 +772,7 @@ ClassDispatchPnp(
 
                     //
                     // ASSERT that we never get two queries in a row, as
-                    // this will severly mess up the state machine
+                    // this will severely mess up the state machine
                     //
                     ASSERT(commonExtension->CurrentState != irpStack->MinorFunction);
                     commonExtension->PreviousState = commonExtension->CurrentState;
@@ -1413,7 +1413,7 @@ NTSTATUS NTAPI ClassPnpStartDevice(IN PDEVICE_OBJECT DeviceObject)
                                         CLASSP_REG_PERF_RESTORE_VALUE_NAME,
                                         &t);
                 if (t >= CLASS_PERF_RESTORE_MINIMUM) {
-                    fdoExtension->PrivateFdoData->Perf.ReEnableThreshhold = t;
+                    fdoExtension->PrivateFdoData->Perf.ReEnableThreshold = t;
                 }
             }
 
@@ -1555,7 +1555,7 @@ Routine Description:
     If the device object is a PDO (partition object) then the request will
     simply be adjusted for Partition0 and issued to the lower device driver.
 
-    IF the device object is an FDO (paritition 0 object), the number of bytes
+    IF the device object is an FDO (partition 0 object), the number of bytes
     in the request are checked against the maximum byte counts that the adapter
     supports and requests are broken up into
     smaller sizes if necessary.
@@ -1987,7 +1987,7 @@ ClassSendStartUnit()
 Routine Description:
 
     Send command to SCSI unit to start or power up.
-    Because this command is issued asynchronounsly, that is, without
+    Because this command is issued asynchronously, that is, without
     waiting on it to complete, the IMMEDIATE flag is not set. This
     means that the CDB will not return until the drive has powered up.
     This should keep subsequent requests from being submitted to the
@@ -2034,7 +2034,7 @@ ClassSendStartUnit(
 
         //
         // ISSUE-2000/02/03-peterwie
-        // This code path was inheritted from the NT 4.0 class2.sys driver.
+        // This code path was inherited from the NT 4.0 class2.sys driver.
         // It needs to be changed to survive low-memory conditions.
         //
 
@@ -2101,7 +2101,7 @@ ClassSendStartUnit(
 
         //
         // ISSUE-2000/02/03-peterwie
-        // This code path was inheritted from the NT 4.0 class2.sys driver.
+        // This code path was inherited from the NT 4.0 class2.sys driver.
         // It needs to be changed to survive low-memory conditions.
         //
 
@@ -2145,7 +2145,7 @@ ClassAsynchronousCompletion() ISSUE-2000/02/18-henrygab - why public?!
 Routine Description:
 
     This routine is called when an asynchronous I/O request
-    which was issused by the class driver completes.  Examples of such requests
+    which was issued by the class driver completes.  Examples of such requests
     are release queue or START UNIT. This routine releases the queue if
     necessary.  It then frees the context and the IRP.
 
@@ -2667,8 +2667,8 @@ ClassSendSrbSynchronous(
     BOOLEAN retry;
 
     //
-    // NOTE: This code is only pagable because we are not freezing
-    //       the queue.  Allowing the queue to be frozen from a pagable
+    // NOTE: This code is only pageable because we are not freezing
+    //       the queue.  Allowing the queue to be frozen from a pageable
     //       routine could leave the queue frozen as we try to page in
     //       the code to unfreeze the queue.  The result would be a nice
     //       case of deadlock.  Therefore, since we are unfreezing the
@@ -3188,7 +3188,7 @@ ClassInterpretSenseInfo(
                         SCSI_SENSE_NOT_READY/SCSI_ADSENSE_NO_MEDIA_IN_DEVICE
 
                         These drives should not pass WHQL certification due
-                        to this discrepency.
+                        to this discrepancy.
 
                         */
                         retry = FALSE;
@@ -4112,7 +4112,7 @@ Arguments:
 
     Length - Supplies the length in bytes of the mode sense buffer.
 
-    PageMode - Supplies the page or pages of mode sense data to be retrived.
+    PageMode - Supplies the page or pages of mode sense data to be retrieved.
 
 Return Value:
 
@@ -4292,9 +4292,9 @@ Routine Description:
 
 Arguments:
 
-    Fdo - Supplies the functional device object for the orginal request.
+    Fdo - Supplies the functional device object for the original request.
 
-    Srb - Supplies a paritally build ScsiRequestBlock.  In particular, the
+    Srb - Supplies a partially built ScsiRequestBlock.  In particular, the
         CDB and the SRB timeout value must be filled in.  The SRB must not be
         allocated from zone.
 
@@ -4616,7 +4616,7 @@ ClassDeviceControl(
         //PSCSI_PASS_THROUGH scsiPass;
 
         //
-        // Validiate the user buffer.
+        // Validate the user buffer.
         //
         #if defined (_WIN64)
 
@@ -6951,7 +6951,7 @@ ClassRemoveDevice() ISSUE-2000/02/18-henrygab - why public?!
 Routine Description:
 
     This routine is called to handle the "removal" of a device.  It will
-    forward the request downwards if necesssary, call into the driver
+    forward the request downwards if necessary, call into the driver
     to release any necessary resources (memory, events, etc) and then
     will delete the device object.
 
@@ -7196,7 +7196,7 @@ ClassRemoveDevice(
                     (PPHYSICAL_DEVICE_EXTENSION) commonExtension;
 
                 //
-                // See if this device is in the child list (if this was a suprise
+                // See if this device is in the child list (if this was a surprise
                 // removal it might be) and remove it.
                 //
 
@@ -8281,7 +8281,7 @@ ClasspReleaseQueue(
     lowerDevice = fdoExtension->CommonExtension.LowerDeviceObject;
 
     //
-    // we raise irql seperately so we're not swapped out or suspended
+    // we raise irql separately so we're not swapped out or suspended
     // while holding the release queue irp in this routine.  this lets
     // us release the spin lock before lowering irql.
     //
@@ -8389,7 +8389,7 @@ ClassReleaseQueueCompletion()
 Routine Description:
 
     This routine is called when an asynchronous I/O request
-    which was issused by the class driver completes.  Examples of such requests
+    which was issued by the class driver completes.  Examples of such requests
     are release queue or START UNIT. This routine releases the queue if
     necessary.  It then frees the context and the IRP.
 
index 59a2949..d758827 100644 (file)
@@ -395,7 +395,7 @@ struct _CLASS_PRIVATE_FDO_DATA {
     struct {
         ULONG      OriginalSrbFlags;
         ULONG      SuccessfulIO;
-        ULONG      ReEnableThreshhold; // 0 means never
+        ULONG      ReEnableThreshold; // 0 means never
     } Perf;
 
     ULONG_PTR HackFlags;
index 890b347..0206e80 100644 (file)
@@ -155,8 +155,8 @@ ClassSystemControl(
     }
 
     //
-    // If the irp is not a WMI irp or it is not targetted at this device
-    // or this device has not regstered with WMI then just forward it on.
+    // If the irp is not a WMI irp or it is not targeted at this device
+    // or this device has not registered with WMI then just forward it on.
     minorFunction = irpStack->MinorFunction;
     if ((minorFunction > IRP_MN_EXECUTE_METHOD) ||
         (irpStack->Parameters.WMI.ProviderId != (ULONG_PTR)DeviceObject) ||
index 3d60900..bae795b 100644 (file)
@@ -124,7 +124,7 @@ ClassAcquireRemoveLockEx(
                 commonExtension->RemoveTrackingUntrackedCount++;
             
                 DebugPrint((ClassDebugWarning, ">>>>>ClassAcquireRemoveLock: "
-                            "Cannot track Tag %p - currently %d untracked requsts\n",
+                            "Cannot track Tag %p - currently %d untracked requests\n",
                             Tag, commonExtension->RemoveTrackingUntrackedCount));
 
                 KeReleaseSpinLock(&commonExtension->RemoveTrackingSpinlock,
index 59ed976..498507a 100644 (file)
@@ -326,7 +326,7 @@ Arguments:
 
     Srb - Supplies a Pointer to the SCSI request block to be retied.
 
-    Assocaiated - Indicates this is an assocatied Irp created by split request.
+    Associated - Indicates this is an associated Irp created by split request.
 
     RetryInterval - How long, in seconds, before retrying the request.
 
index 195792f..085abc3 100644 (file)
@@ -788,7 +788,7 @@ ClasspPowerDownCompletion(
 
                 BOOLEAN retry;
 
-                DebugPrint((1, "(%p)\tError occured when issueing STOP_UNIT "
+                DebugPrint((1, "(%p)\tError occured when issuing STOP_UNIT "
                             "command to device. Srb %p, Status %lx\n",
                             Irp,
                             &context->Srb,
@@ -940,7 +940,7 @@ ClasspPowerDownCompletion(
 
             DebugPrint((1, "(%p)\tFreeing srb and completing\n", Irp));
             context->InUse = FALSE;
-            status = context->FinalStatus; // allow failure to propogate
+            status = context->FinalStatus; // allow failure to propagate
             context = NULL;
 
             if(Irp->PendingReturned) {
index de4cc04..b2a90ba 100644 (file)
@@ -311,20 +311,20 @@ VOID NTAPI ClassScanForSpecial(
 //
 // whenever there is an error, immediately grab the spin lock.  the
 // MP perf hit here is acceptable, since we're in an error path.  this
-// is also neccessary because we are guaranteed to be modifying the
+// is also necessary because we are guaranteed to be modifying the
 // SRB flags here, setting SuccessfulIO to zero, and incrementing the
 // actual error count (which is always done within this spinlock).
 //
 // whenever there is no error, increment a counter.  if there have been
 // errors on the device, and we've enabled dynamic perf, *and* we've
-// just crossed the perf threshhold, then grab the spin lock and
-// double check that the threshhold has, indeed been hit(*). then
+// just crossed the perf threshold, then grab the spin lock and
+// double check that the threshold has, indeed been hit(*). then
 // decrement the error count, and if it's dropped sufficiently, undo
 // some of the safety changes made in the SRB flags due to the errors.
 //
 // * this works in all cases.  even if lots of ios occur after the
 //   previous guy went in and cleared the successfulio counter, that
-//   just means that we've hit the threshhold again, and so it's proper
+//   just means that we've hit the threshold again, and so it's proper
 //   to run the inner loop again.
 //
 
@@ -348,7 +348,7 @@ ClasspPerfIncrementErrorCount(
         //
         // If the error count has exceeded the error limit, then disable
         // any tagged queuing, multiple requests per lu queueing
-        // and sychronous data transfers.
+        // and synchronous data transfers.
         //
         // Clearing the no queue freeze flag prevents the port driver
         // from sending multiple requests per logical unit.
@@ -400,12 +400,12 @@ ClasspPerfIncrementSuccessfulIo(
         return;
     }
 
-    if (fdoData->Perf.ReEnableThreshhold == 0) {
+    if (fdoData->Perf.ReEnableThreshold == 0) {
         return;
     }
 
     succeeded = InterlockedIncrement((PLONG)&fdoData->Perf.SuccessfulIO);
-    if (succeeded < fdoData->Perf.ReEnableThreshhold) {
+    if (succeeded < fdoData->Perf.ReEnableThreshold) {
         return;
     }
 
@@ -419,14 +419,14 @@ ClasspPerfIncrementSuccessfulIo(
 
     //
     // re-read the value, so we don't run this multiple times
-    // for a single threshhold being hit.  this keeps errorcount
+    // for a single threshold being hit.  this keeps errorcount
     // somewhat useful.
     //
 
     succeeded = fdoData->Perf.SuccessfulIO;
 
     if ((FdoExtension->ErrorCount != 0) &&
-        (fdoData->Perf.ReEnableThreshhold <= succeeded)
+        (fdoData->Perf.ReEnableThreshold <= succeeded)
         ) {
 
         fdoData->Perf.SuccessfulIO = 0; // implicit interlock
@@ -471,7 +471,7 @@ ClasspPerfIncrementSuccessfulIo(
                          SRB_FLAGS_NO_QUEUE_FREEZE);
             }
         }
-    } // end of threshhold definitely being hit for first time
+    } // end of threshold definitely being hit for first time
 
     KeReleaseSpinLock(&fdoData->SpinLock, oldIrql);
     return;
index af4cf04..8b5e4a4 100644 (file)
@@ -2,7 +2,7 @@
  * PROJECT:        ReactOS Floppy Disk Controller Driver
  * LICENSE:        GNU GPLv2 only as published by the Free Software Foundation
  * FILE:           drivers/storage/fdc/fdc/fdc.rc
- * PURPOSE:        Resrouce definition file
+ * PURPOSE:        Resource definition file
  * PROGRAMMERS:    Eric Kohl
  */
 
index 257d558..b1c7125 100644 (file)
@@ -251,7 +251,7 @@ FdcFdoConfigCallback(
         DriveInfo->FloppyDeviceData.MaximumTrackValue = FloppyDeviceData->MaximumTrackValue;
         DriveInfo->FloppyDeviceData.DataTransferLength = FloppyDeviceData->DataTransferLength;
 
-        /* Once it's all set up, acknowledge its existance in the controller info object */
+        /* Once it's all set up, acknowledge its existence in the controller info object */
         DeviceExtension->ControllerInfo.NumberOfDrives++;
     }
 
index 0b65e28..d388cf7 100644 (file)
@@ -104,7 +104,7 @@ StartMotor(PDRIVE_INFO DriveInfo)
  *       You wouldn't want to turn on the motor and then cancel the timer, because the
  *       cancel dpc might fire in the meantime, and that'd un-do what you just did.  If you
  *       cancel the timer first, but KeCancelTimer returns false, the dpc is already running,
- *       so you have to wait until the dpc is completly done running, or else you'll race
+ *       so you have to wait until the dpc is completely done running, or else you'll race
  *       with the turner-offer
  *     - PAGED_CODE because we wait
  */
@@ -564,7 +564,7 @@ ConfigCallback(PVOID Context,
         DriveInfo->FloppyDeviceData.MaximumTrackValue = FloppyDeviceData->MaximumTrackValue;
         DriveInfo->FloppyDeviceData.DataTransferLength = FloppyDeviceData->DataTransferLength;
 
-        /* Once it's all set up, acknowledge its existance in the controller info object */
+        /* Once it's all set up, acknowledge its existence in the controller info object */
         gControllerInfo[gNumberOfControllers].NumberOfDrives++;
     }
 
@@ -595,7 +595,7 @@ Isr(PKINTERRUPT Interrupt, PVOID ServiceContext)
  *       triggered, this is safe to not do here, as we can just wait for the DPC.
  *     - Either way, we don't want to do this here.  The controller shouldn't interrupt again, so we'll
  *       schedule a DPC to take care of it.
- *     - This driver really cannot shrare interrupts, as I don't know how to conclusively say
+ *     - This driver really cannot share interrupts, as I don't know how to conclusively say
  *       whether it was our controller that interrupted or not.  I just have to assume that any time
  *       my ISR gets called, it was my board that called it.  Dumb design, yes, but it goes back to
  *       the semantics of ISA buses.  That, and I don't know much about ISA drivers. :-)
@@ -637,7 +637,7 @@ DpcForIsr(PKDPC UnusedDpc, PVOID Context, PVOID SystemArgument1, PVOID SystemArg
  *     - This function just kicks off whatever the SynchEvent is and returns.  We depend on
  *       the thing that caused the drive to interrupt to handle the work of clearing the interrupt.
  *       This enables us to get back to PASSIVE_LEVEL and not hog system time on a really stupid,
- *       slow, screwed-up piece of hardare.
+ *       slow, screwed-up piece of hardware.
  *     - If nothing is waiting for us to set the event, the interrupt is effectively lost and will
  *       never be dismissed.  I wonder if this will become a problem.
  *     - Called at DISPATCH_LEVEL
@@ -901,7 +901,7 @@ AddControllers(PDRIVER_OBJECT DriverObject)
             continue;
         }
 
-        /* 2c: Set the controller's initlized flag so we know to release stuff in Unload */
+        /* 2c: Set the controller's initialized flag so we know to release stuff in Unload */
         gControllerInfo[i].Initialized = TRUE;
 
         /* 3: per-drive setup */
@@ -1199,7 +1199,7 @@ DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
     ZwClose(ThreadHandle);
 
     /*
-     * Start the device discovery proces.  Returns STATUS_SUCCESS if
+     * Start the device discovery process.  Returns STATUS_SUCCESS if
      * it finds even one drive attached to one controller.
      */
     if(!AddControllers(DriverObject))
index 27ae681..d23ec11 100644 (file)
@@ -2,7 +2,7 @@
  * PROJECT:         ReactOS Floppy Driver
  * LICENSE:         GPL - See COPYING in the top level directory
  * FILE:            drivers/storage/floppy/floppy.rc
- * PURPOSE:         Resrouce definition file
+ * PURPOSE:         Resource definition file
  * PROGRAMMERS:     Vizzini (vizzini@plasmic.com)
  */
 
index c163bba..fb3c78e 100644 (file)
@@ -936,7 +936,7 @@ HwSpecify(PCONTROLLER_INFO ControllerInfo,
  *     StepRateTime: Step rate time
  *     NonDma: TRUE to disable DMA mode
  * RETURNS:
- *     STATUS_SUCCESS if the contrller is successfully programmed
+ *     STATUS_SUCCESS if the controller is successfully programmed
  *     STATUS_UNSUCCESSFUL if not
  * NOTES:
  *     - Does not interrupt
index f36ec25..21b1340 100644 (file)
@@ -66,7 +66,7 @@
 #define DSRB_MOTOR_ENABLE_1             0x2
 #define DSRB_WRITE_ENABLE               0x4
 #define DSRB_READ_DATA                  0x8
-#define DSRB_WRTITE_DATA                0x10
+#define DSRB_WRITE_DATA                 0x10
 #define DSRB_DRIVE_SELECT               0x20
 
 /* DIGITAL_OUTPUT_REGISTER */
index 88b3b39..976e02e 100644 (file)
@@ -63,7 +63,7 @@ DeviceIoctl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
 VOID NTAPI
 DeviceIoctlPassive(PDRIVE_INFO DriveInfo, PIRP Irp)
 /*
- * FUNCTION: Handlees IOCTL requests at PASSIVE_LEVEL
+ * FUNCTION: Handles IOCTL requests at PASSIVE_LEVEL
  * ARGUMENTS:
  *     DriveInfo: Drive that the IOCTL is directed at
  *     Irp: IRP with the request in it
index d677ade..aff69ca 100644 (file)
@@ -328,7 +328,7 @@ RWSeekToCylinder(PDRIVE_INFO DriveInfo, UCHAR Cylinder)
 
     if(CurCylinder != Cylinder)
     {
-        WARN_(FLOPPY, "RWSeekToTrack(): Seeek to track failed; current cylinder is 0x%x\n", CurCylinder);
+        WARN_(FLOPPY, "RWSeekToTrack(): Seek to track failed; current cylinder is 0x%x\n", CurCylinder);
         return STATUS_UNSUCCESSFUL;
     }
 
@@ -543,7 +543,7 @@ ReadWritePassive(PDRIVE_INFO DriveInfo, PIRP Irp)
      * greatly (and I even wrote some of the kernel's DMA code, so if it confuses me, it
      * probably confuses at least a couple of other people too).
      *
-     * MmGetMdlVirtualAddress() returns the virtal address, as mapped in the buffer's original
+     * MmGetMdlVirtualAddress() returns the virtual address, as mapped in the buffer's original
      * process context, of the MDL.  In other words:  say you start with a buffer at address X, then
      * you build an MDL out of that buffer called Mdl. If you call MmGetMdlVirtualAddress(Mdl), it
      * will return X.
index a0b8052..6bad480 100644 (file)
@@ -2286,7 +2286,7 @@ retryIdentifier:
         ScsiPortWritePortUchar(&((PIDE_REGISTERS_1)ioSpace)->CylinderLow, 0xAA);
 
         //
-        // Check if indentifier can be read back.
+        // Check if identifier can be read back.
         //
 
         if ((statusByte = ScsiPortReadPortUchar(&((PIDE_REGISTERS_1)ioSpace)->CylinderLow)) != 0xAA) {
@@ -2510,7 +2510,7 @@ retryIdentifier:
         }// preConfig check
 
         //
-        // Save the Interrupe Mode for later use
+        // Save the Interrupt Mode for later use
         //
         deviceExtension->InterruptMode = ConfigInfo->InterruptMode;
 
@@ -2864,7 +2864,7 @@ Return Value:
             ScsiPortWritePortUchar(&((PIDE_REGISTERS_1)ioSpace)->CylinderLow, 0xAA);
 
             //
-            // Check if indentifier can be read back.
+            // Check if identifier can be read back.
             //
 
             if ((statusByte = ScsiPortReadPortUchar(&((PIDE_REGISTERS_1)ioSpace)->CylinderLow)) != 0xAA) {
@@ -2966,7 +2966,7 @@ Return Value:
             atapiOnly = FALSE;
 
             //
-            // Save the Interrupe Mode for later use
+            // Save the Interrupt Mode for later use
             //
             deviceExtension->InterruptMode = ConfigInfo->InterruptMode;
 
@@ -3170,7 +3170,7 @@ Return Value:
                     ScsiPortWritePortUchar(&((PIDE_REGISTERS_1)ioSpace)->CylinderLow, 0xAA);
 
                     //
-                    // Check if indentifier can be read back.
+                    // Check if identifier can be read back.
                     //
 
                     if ((statusByte = ScsiPortReadPortUchar(&((PIDE_REGISTERS_1)ioSpace)->CylinderLow)) != 0xAA) {
@@ -3296,7 +3296,7 @@ Return Value:
                         atapiOnly = FALSE;
 
                         //
-                        // Save the Interrupe Mode for later use
+                        // Save the Interrupt Mode for later use
                         //
                         deviceExtension->InterruptMode = ConfigInfo->InterruptMode;
 
@@ -4068,7 +4068,7 @@ CompleteRequest:
                 PSENSE_DATA senseData = (PSENSE_DATA) srb->DataBuffer;
 
                 if (status == SRB_STATUS_DATA_OVERRUN) {
-                    // Check to see if we at least get mininum number of bytes
+                    // Check to see if we at least get minimum number of bytes
                     if ((srb->DataTransferLength - deviceExtension->WordsLeft) >
                         (FIELD_OFFSET (SENSE_DATA, AdditionalSenseLength) + sizeof(senseData->AdditionalSenseLength))) {
                         status = SRB_STATUS_SUCCESS;
@@ -4403,7 +4403,7 @@ Return Value:
             }
 
             //
-            // Zero the ouput buffer as the input buffer info. has been saved off locally (the buffers are the same).
+            // Zero the output buffer as the input buffer info. has been saved off locally (the buffers are the same).
             //
 
             for (i = 0; i < (sizeof(SENDCMDOUTPARAMS) + READ_ATTRIBUTE_BUFFER_SIZE - 1); i++) {
@@ -4453,7 +4453,7 @@ Return Value:
             }
 
             //
-            // Zero the ouput buffer as the input buffer info. has been saved off locally (the buffers are the same).
+            // Zero the output buffer as the input buffer info. has been saved off locally (the buffers are the same).
             //
 
             for (i = 0; i < (sizeof(SENDCMDOUTPARAMS) - 1); i++) {
@@ -6464,7 +6464,7 @@ BuildMechanismStatusSrb (
     srb->Length     = sizeof(SCSI_REQUEST_BLOCK);
 
     //
-    // Set flags to disable synchronous negociation.
+    // Set flags to disable synchronous negotiation.
     //
     srb->SrbFlags = SRB_FLAGS_DATA_IN | SRB_FLAGS_DISABLE_SYNCH_TRANSFER;
 
@@ -6510,7 +6510,7 @@ BuildRequestSenseSrb (
     srb->Length     = sizeof(SCSI_REQUEST_BLOCK);
 
     //
-    // Set flags to disable synchronous negociation.
+    // Set flags to disable synchronous negotiation.
     //
     srb->SrbFlags = SRB_FLAGS_DATA_IN | SRB_FLAGS_DISABLE_SYNCH_TRANSFER;
 
index c313dc9..9126293 100644 (file)
@@ -2,7 +2,7 @@
  * COPYRIGHT:       See COPYING in the top level directory
  * PROJECT:         PCI IDE bus driver extension
  * FILE:            drivers/storage/pciidex/misc.c
- * PURPOSE:         Misceallenous operations
+ * PURPOSE:         Miscellaneous operations
  * PROGRAMMERS:     Hervé Poussineau (hpoussin@reactos.org)
  */
 
index 9c868ca..b491249 100644 (file)
@@ -345,7 +345,7 @@ typedef struct _IDE_CONTROLLER_PROPERTIES {
 
     //
     // always clear the busmaster interrupt on every interrupt
-    // generated by the device.  Normnally, it should be FALSE
+    // generated by the device.  Normally, it should be FALSE
     //
     BOOLEAN AlwaysClearBusMasterInterrupt;
 
@@ -381,7 +381,7 @@ NTSTATUS (*PCONTROLLER_PROPERTIES) (
 
                      
 //
-// To initailize PCI IDE mini driver
+// To initialize PCI IDE mini driver
 //                     
 NTSTATUS
 PciIdeXInitialize(
index 5afa8bb..11f0ae6 100644 (file)
@@ -54,7 +54,7 @@ typedef union _CDB_RBC {
         UCHAR Reserved[3];
 
         UCHAR Prevent : 1;
-        UCHAR Persistant : 1;
+        UCHAR Persistent : 1;
         UCHAR Reserved3 : 6;
 
         UCHAR Control;
index ed4ba61..76b6d8b 100644 (file)
 //
 // File description :The driver for BusLogic-BT958 SCSI Host adapter card.
 // This driver assumes that the host adapter(HA from now on) is a PCI device.
-// This is an effort to build a driver for this card for the windows XP ennvironment
+// This is an effort to build a driver for this card for the windows XP environment
 // since the native XP installation doesnt provide this driver.
 //
-// The technical refernece for this device is at :
+// The technical reference for this device is at :
 //
 // Author: Namita Lal, Sirish Raghuram Calsoft Pvt Ltd
 // Date:   5th Feb 2003
@@ -121,7 +121,7 @@ DriverEntry(IN PVOID DriverObject,
     hwInitializationData.HwAdapterControl = BT958HwAdapterControl;
     hwInitializationData.HwFindAdapter =    BT958HwFindAdapter;
 
-    // Inidicate no buffer mapping but will need physical addresses
+    // Indicate no buffer mapping but will need physical addresses
     hwInitializationData.NeedPhysicalAddresses = TRUE;
 
     // Indicate Auto request sense is supported
@@ -225,7 +225,7 @@ BT958HwFindAdapter(IN PVOID HwDeviceExtension,
     if ((*ConfigInfo->AccessRanges)[0].RangeLength != 0)
     {
         // check if the system supplied bus-relative address is valid and has not been
-        // claimed by anyother device
+        // claimed by another device
         if ( ScsiPortValidateRange(deviceExtension,
                                    ConfigInfo->AdapterInterfaceType,
                                    ConfigInfo->SystemIoBusNumber,
@@ -291,7 +291,7 @@ BT958HwFindAdapter(IN PVOID HwDeviceExtension,
     // Should we change this to double-word aligned to increase performance
     ConfigInfo->AlignmentMask = 0x0;
 
-    if (!Buslogic_InitBT958(deviceExtension,ConfigInfo)) // harware specific initializations. Find what's for our card
+    if (!Buslogic_InitBT958(deviceExtension,ConfigInfo)) // hardware specific initializations. Find what's for our card
     {
        ScsiPortLogError(deviceExtension,
                          NULL,
@@ -504,7 +504,7 @@ BusLogic_HardwareResetHostAdapter(BusLogic_HostAdapter_T  *HostAdapter,
           break;
   }
 
-  // if inspite of waiting for time out period , if it didn't et set, then something is wrong-- so just return.
+  // if in spite of waiting for time out period , if it didn't et set, then something is wrong-- so just return.
   if (TimeoutCounter < 0)
       return FALSE;
 
@@ -1319,7 +1319,7 @@ BusLogic_TargetDeviceInquiry(BusLogic_HostAdapter_T *HostAdapter)
 //                  BusLogic_TargetDeviceInquiry inquires about the Target Devices accessible
 //                  through Host Adapter.
 // Arguments:
-//              1. Host Adpater structure
+//              1. Host Adapter structure
 //              2.
 // Return Value:
 //              TRUE : Inquiry successful
@@ -1751,7 +1751,7 @@ BusLogic_QueueCommand(IN PVOID HwDeviceExtension ,
 // Routine Description:
 //                      BusLogic_QueueCommand creates a CCB for Command
 // Arguments:
-//              1. HwDeviceExtemsion: device extension
+//              1. HwDeviceExtension: device extension
 //              2. Srb: Pointe to the SRB
 //              3. CCB: POinter to the buffer containing the space for CCB
 // Return Value:
@@ -2624,7 +2624,7 @@ BT958HwInitialize(IN PVOID HwDeviceExtension)
 // Arguments:
 //              1. device extension
 // Return Value:
-//              TRUE : initialzation successful
+//              TRUE : initialization successful
 //              FALSE : initialization failed
 //_______________________________________________________________________________
 {
index 9ca15de..603f194 100644 (file)
@@ -23,7 +23,7 @@
 //_________________________________________________________________________________________
 //
 // File description :The header file the driver for BusLogic-958 SCSI Host adapter card.
-// The technical refernece for this driver is at :
+// The technical reference for this driver is at :
 //
 // Author: Namita Lal, Sirish Raghuram ( Calsoft Pvt Ltd)
 // Date: 10th June 2002
@@ -333,7 +333,7 @@ typedef struct BusLogic_SetupInformation
   UCHAR WideTransfersActiveID8to15;                      /* Byte 33 */
 }BusLogic_SetupInformation_T;
 
-// Something has to be done about the packing machanism of these structures - Namita
+// Something has to be done about the packing mechanism of these structures - Namita
 // Define the Inquire Extended Setup Information reply structure.
 typedef struct BusLogic_ExtendedSetupInformation
 {
@@ -812,7 +812,7 @@ typedef struct BusLogic_WmiExtendedSetupInformation
 #pragma pack ()
 
 //_________________________________________________________________________________________
-// function declaractions
+// function declarations
 //_________________________________________________________________________________________
 ULONG
 NTAPI
@@ -940,7 +940,7 @@ WriteBusLogicPort(UCHAR data,
 }
 
 //_________________________________________________________________________________________
-// Declarations for the device registers and rewading and writing to them
+// Declarations for the device registers and reading and writing to them
 //_________________________________________________________________________________________
 
 //  Define the BusLogic SCSI Host Adapter I/O Register Offsets.
index 23a8a02..47f138f 100644 (file)
@@ -66,7 +66,7 @@ BOOLEAN LogMessage(PCHAR szFormat, ...)
                //put a time stamp on the output message
                sprintf(buf,"%10u-%10u  %s",time.HighPart,time.LowPart,messagebuf);
 
-               //format the string to make sure it appends a newline carrage-return to the
+               //format the string to make sure it appends a newline carriage-return to the
                //end of the string.
                Length=strlen(buf);
                if(buf[Length-1]=='\n')
index 6b8ecfa..0b1ecc3 100644 (file)
@@ -108,11 +108,11 @@ Return Value:
    ASSERT(Srb->DataTransferLength >= sizeof(ULONG));
    ASSERT(Srb->DataBuffer);
 
-   // Check if the WMI SRB is targetted for the adapter or one of the disks
+   // Check if the WMI SRB is targeted for the adapter or one of the disks
    if (!(Srb->WMIFlags & SRB_WMI_FLAGS_ADAPTER_REQUEST))
    {
 
-      // This is targetted to one of the disks, since there are no per disk
+      // This is targeted to one of the disks, since there are no per disk
       // wmi information we return an error. Note that if there was per
       // disk information, then you'd likely have a differen WmiLibContext
       // and a different set of guids.
@@ -131,7 +131,7 @@ Return Value:
                                                 Srb->DataTransferLength,
                                                 Srb->DataBuffer);
 
-       // We assune that the wmi request will never pend so that we can
+       // We assume that the wmi request will never pend so that we can
        // allocate the requestContext from stack. If the WMI request could
        // ever pend then we'd need to allocate the request context from
        // the SRB extension.
@@ -324,7 +324,7 @@ Arguments:
         then this can be returned as NULL.
 
     *Pdo returns with the device object for the PDO associated with this
-        device if the WMIREG_FLAG_INSTANCE_PDO flag is retured in
+        device if the WMIREG_FLAG_INSTANCE_PDO flag is returned in
         *RegFlags.
 
 Return Value:
index 020db06..eaa7068 100644 (file)
@@ -865,7 +865,7 @@ SpiAllocateCommonBuffer(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension, ULONG NonCa
         SrbExtension = (PVOID *)CommonBuffer;
         DeviceExtension->FreeSrbExtensions = SrbExtension;
 
-        /* Fill the remainding pointers (if we have more than 1 SRB) */
+        /* Fill the remaining pointers (if we have more than 1 SRB) */
         while (CommonBufferLength >= 2 * BufSize)
         {
             *SrbExtension = (PVOID*)((PCHAR)SrbExtension + BufSize);
@@ -1546,7 +1546,7 @@ CreatePortConfig:
 
           for (i = 0; i < DeviceExtension->InterruptCount; i++)
           {
-              /* Determing IRQ sharability as usual */
+              /* Determine IRQ sharability as usual */
               if (PortConfig->AdapterInterfaceType == MicroChannel ||
                   InterruptMode[i] == LevelSensitive)
               {
@@ -1894,7 +1894,7 @@ ScsiPortNotification(IN SCSI_NOTIFICATION_TYPE NotificationType,
 
             DPRINT("Notify: RequestComplete (Srb %p)\n", Srb);
 
-            /* Make sure Srb is allright */
+            /* Make sure Srb is alright */
             ASSERT(Srb->SrbStatus != SRB_STATUS_PENDING);
             ASSERT(Srb->Function != SRB_FUNCTION_EXECUTE_SCSI || Srb->SrbStatus != SRB_STATUS_SUCCESS || Srb->ScsiStatus == SCSISTAT_GOOD);
 
@@ -3432,7 +3432,7 @@ SpiAllocateSrbStructures(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
                 LunExtension->PendingRequest = Srb->OriginalRequest;
                 LunExtension->Flags |= LUNEX_REQUEST_PENDING | SCSI_PORT_LU_ACTIVE;
 
-                /* Relese the spinlock and return */
+                /* Release the spinlock and return */
                 KeReleaseSpinLockFromDpcLevel(&DeviceExtension->SpinLock);
                 return NULL;
             }
@@ -4417,7 +4417,7 @@ SpiProcessCompletedRequest(IN PSCSI_PORT_DEVICE_EXTENSION DeviceExtension,
 
         DPRINT("Busy SRB status %x\n", Srb->SrbStatus);
 
-        /* Requeu, if needed */
+        /* Requeue, if needed */
         if (LunExtension->Flags & (LUNEX_FROZEN_QUEUE | LUNEX_BUSY))
         {
             DPRINT("it's being requeued\n");
@@ -4499,7 +4499,7 @@ Error:
             /* If LUN is busy, we have to requeue it in order to allow request sense */
             if (LunExtension->Flags & LUNEX_BUSY)
             {
-                DPRINT("Requeueing busy request to allow request sense\n");
+                DPRINT("Requeuing busy request to allow request sense\n");
 
                 if (!KeInsertByKeyDeviceQueue(&LunExtension->DeviceQueue,
                     &LunExtension->BusyRequest->Tail.Overlay.DeviceQueueEntry,
@@ -4668,7 +4668,7 @@ SpiSaveInterruptData(IN PVOID Context)
                                           Srb->TargetId,
                                           Srb->Lun);
 
-        /* We have to check special cases if request is unsuccessfull*/
+        /* We have to check special cases if request is unsuccessful*/
         if (Srb->SrbStatus != SRB_STATUS_SUCCESS)
         {
             /* Check if we need request sense by a few conditions */
index 5537bf9..44d1b50 100644 (file)
@@ -441,7 +441,7 @@ USBCCGP_SelectInterface(
     Status = USBCCGP_SyncUrbRequest(DeviceExtension->NextDeviceObject, Urb);
 
     //
-    // did it succeeed
+    // did it succeed
     //
     if (NT_SUCCESS(Status))
     {
index 0428f56..7916e8a 100644 (file)
@@ -46,7 +46,7 @@ FDO_QueryCapabilities(
     /* Init event */
     KeInitializeEvent(&Event, NotificationEvent, FALSE);
 
-    /* Now allocte the irp */
+    /* Now allocate the irp */
     Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE);
     if (!Irp)
     {
index f551ea9..f9cb698 100644 (file)
@@ -580,7 +580,7 @@ USBD_ParseConfigurationDescriptorEx(
 
        if (Found)
        {
-           /* the choosen one */
+           /* the chosen one */
            return InterfaceDescriptor;
        }
 
index 31c8c16..e08ff52 100644 (file)
@@ -23,7 +23,7 @@ InterruptServiceRoutine(
 
 VOID
 NTAPI
-EhciDefferedRoutine(
+EhciDeferredRoutine(
     IN PKDPC Dpc,
     IN PVOID DeferredContext,
     IN PVOID SystemArgument1,
@@ -67,7 +67,7 @@ public:
 
     // friend function
     friend BOOLEAN NTAPI InterruptServiceRoutine(IN PKINTERRUPT  Interrupt, IN PVOID  ServiceContext);
-    friend VOID NTAPI EhciDefferedRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
+    friend VOID NTAPI EhciDeferredRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
     friend VOID NTAPI StatusChangeWorkItemRoutine(PVOID Context);
     // constructor / destructor
     CUSBHardwareDevice(IUnknown *OuterUnknown){}
@@ -316,7 +316,7 @@ CUSBHardwareDevice::PnpStart(
             case CmResourceTypeInterrupt:
             {
                 KeInitializeDpc(&m_IntDpcObject,
-                                EhciDefferedRoutine,
+                                EhciDeferredRoutine,
                                 this);
 
                 Status = IoConnectInterrupt(&m_Interrupt,
@@ -1287,7 +1287,7 @@ InterruptServiceRoutine(
 }
 
 VOID NTAPI
-EhciDefferedRoutine(
+EhciDeferredRoutine(
     IN PKDPC Dpc,
     IN PVOID DeferredContext,
     IN PVOID SystemArgument1,
@@ -1301,7 +1301,7 @@ EhciDefferedRoutine(
     This = (CUSBHardwareDevice*) SystemArgument1;
     CStatus = (ULONG) SystemArgument2;
 
-    DPRINT("EhciDefferedRoutine CStatus %lx\n", CStatus);
+    DPRINT("EhciDeferredRoutine CStatus %lx\n", CStatus);
 
     //
     // check for completion of async schedule
index 6787bb4..48a06d6 100644 (file)
@@ -53,7 +53,7 @@ protected:
     PQUEUE_HEAD AsyncListQueueHead;                                                     // async queue head
     LIST_ENTRY m_CompletedRequestAsyncList;                                             // completed async request list
     LIST_ENTRY m_PendingRequestAsyncList;                                               // pending async request list
-    ULONG m_MaxPeriodicListEntries;                                                     // max perdiodic list entries
+    ULONG m_MaxPeriodicListEntries;                                                     // max periodic list entries
     ULONG m_MaxPollingInterval;                                                         // max polling interval
     PHYSICAL_ADDRESS m_SyncFrameListAddr;                                               // physical address of sync frame list
     PULONG m_SyncFrameList;                                                             // virtual address of sync frame list
@@ -79,7 +79,7 @@ protected:
     // called when the completion queue is cleaned up
     VOID QueueHeadCleanup(PQUEUE_HEAD QueueHead);
 
-    // intializes the sync schedule
+    // initializes the sync schedule
     NTSTATUS InitializeSyncSchedule(IN PEHCIHARDWAREDEVICE Hardware, IN PDMAMEMORYMANAGER MemManager);
 
     // links interrupt queue head
index ce1699a..0091f4a 100644 (file)
@@ -391,7 +391,7 @@ CUSBRequest::CompletionCallback(
         }
 
         //
-        // check if the request was successfull
+        // check if the request was successful
         //
         if (!NT_SUCCESS(NtStatusCode))
         {
index da9e8e0..0800c59 100644 (file)
@@ -244,7 +244,7 @@ FDO_QueryInterface(
     /* Init event */
     KeInitializeEvent(&Event, NotificationEvent, FALSE);
 
-    /* Now allocte the irp */
+    /* Now allocate the irp */
     Irp = IoAllocateIrp(DeviceObject->StackSize, FALSE);
     if (!Irp)
     {
index 2ba1cdf..6ddc070 100644 (file)
@@ -60,7 +60,7 @@ UrbCompletion(
 }
 
 NTSTATUS
-FowardUrbToRootHub(
+ForwardUrbToRootHub(
     PDEVICE_OBJECT RootHubDeviceObject,
     IN ULONG IoControlCode,
     PIRP Irp,
@@ -300,7 +300,7 @@ USBHUB_PdoHandleInternalDeviceControl(
             //
             // Send the request to RootHub
             //
-            Status = FowardUrbToRootHub(RootHubDeviceObject, IOCTL_INTERNAL_USB_SUBMIT_URB, Irp, Urb, NULL);
+            Status = ForwardUrbToRootHub(RootHubDeviceObject, IOCTL_INTERNAL_USB_SUBMIT_URB, Irp, Urb, NULL);
             return Status;
         }
         //
index 7d7169e..7bb27bb 100644 (file)
@@ -23,7 +23,7 @@ InterruptServiceRoutine(
 
 VOID
 NTAPI
-OhciDefferedRoutine(
+OhciDeferredRoutine(
     IN PKDPC Dpc,
     IN PVOID DeferredContext,
     IN PVOID SystemArgument1,
@@ -68,7 +68,7 @@ public:
 
     // friend function
     friend BOOLEAN NTAPI InterruptServiceRoutine(IN PKINTERRUPT  Interrupt, IN PVOID  ServiceContext);
-    friend VOID NTAPI OhciDefferedRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
+    friend VOID NTAPI OhciDeferredRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
     friend VOID NTAPI StatusChangeWorkItemRoutine(PVOID Context);
     // constructor / destructor
     CUSBHardwareDevice(IUnknown *OuterUnknown){}
@@ -190,7 +190,7 @@ CUSBHardwareDevice::Initialize(
     KeInitializeSpinLock(&m_Lock);
 
     //
-    // intialize status change work item
+    // initialize status change work item
     //
     ExInitializeWorkItem(&m_StatusChangeWorkItem, StatusChangeWorkItemRoutine, PVOID(this));
 
@@ -248,7 +248,7 @@ CUSBHardwareDevice::PnpStart(
             case CmResourceTypeInterrupt:
             {
                 KeInitializeDpc(&m_IntDpcObject,
-                                OhciDefferedRoutine,
+                                OhciDeferredRoutine,
                                 this);
 
                 Status = IoConnectInterrupt(&m_Interrupt,
@@ -800,7 +800,7 @@ CUSBHardwareDevice::AllocateEndpointDescriptor(
     }
 
     //
-    // intialize descriptor
+    // initialize descriptor
     //
     Descriptor->Flags = OHCI_ENDPOINT_SKIP;
     Descriptor->HeadPhysicalDescriptor = 0;
@@ -1422,7 +1422,7 @@ InterruptServiceRoutine(
 
 VOID
 NTAPI
-OhciDefferedRoutine(
+OhciDeferredRoutine(
     IN PKDPC Dpc,
     IN PVOID DeferredContext,
     IN PVOID SystemArgument1,
@@ -1439,7 +1439,7 @@ OhciDefferedRoutine(
     CStatus = (ULONG) SystemArgument1;
     DoneHead = (ULONG)SystemArgument2;
 
-    DPRINT("OhciDefferedRoutine Status %x DoneHead %x\n", CStatus, DoneHead);
+    DPRINT("OhciDeferredRoutine Status %x DoneHead %x\n", CStatus, DoneHead);
 
     if (CStatus & OHCI_WRITEBACK_DONE_HEAD)
     {
index f757c4b..b8ca38a 100644 (file)
@@ -864,7 +864,7 @@ CUSBQueue::FindInterruptEndpointDescriptor(
         Index++;
     }
 
-    DPRINT("InterruptInterval %lu Selected InterruptIndex %lu Choosen Interval %lu\n", InterruptInterval, Index, Power);
+    DPRINT("InterruptInterval %lu Selected InterruptIndex %lu Chosen Interval %lu\n", InterruptInterval, Index, Power);
 
     //
     // return endpoint
index 5d23599..355edf0 100644 (file)
@@ -740,7 +740,7 @@ CUSBRequest::BuildIsochronousEndpoint(
     ASSERT(Buffer);
 
     //
-    // FIXME: support requests which spans serveral pages
+    // FIXME: support requests which spans several pages
     //
     ASSERT(ADDRESS_AND_SIZE_TO_SPAN_PAGES(MmGetMdlVirtualAddress(m_TransferBufferMDL), MmGetMdlByteCount(m_TransferBufferMDL)) <= 2);
 
@@ -969,7 +969,7 @@ CUSBRequest::AllocateEndpointDescriptor(
     }
 
     //
-    // intialize descriptor
+    // initialize descriptor
     //
     Descriptor->Flags = OHCI_ENDPOINT_SKIP;
 
index b80cee5..e69e8c8 100644 (file)
@@ -458,7 +458,7 @@ USBSTOR_SelectConfigurationAndInterface(
     Status = USBSTOR_SyncUrbRequest(DeviceExtension->LowerDeviceObject, Urb);
 
     //
-    // did it succeeed
+    // did it succeed
     //
     if (NT_SUCCESS(Status))
     {
index 5e294a1..ee5f1eb 100644 (file)
@@ -218,7 +218,7 @@ USBSTOR_GetFieldLength(
     ULONG LastCharacterPosition = 0;
 
     //
-    // scan the field and return last positon which contains a valid character
+    // scan the field and return last position which contains a valid character
     //
     for(Index = 0; Index < MaxLength; Index++)
     {
index ffc783a..e370704 100644 (file)
@@ -179,7 +179,7 @@ USBSTOR_FdoHandleStartDevice(
     }
 
     //
-    // intialize irp queue
+    // initialize irp queue
     //
     USBSTOR_QueueInitialize(DeviceExtension);
 
index c2f0d97..473b482 100644 (file)
@@ -39,7 +39,7 @@ USBSTOR_GetDeviceType(
     }
 
     //
-    // FIXME: use constant - derrived from http://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type
+    // FIXME: use constant - derived from http://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type
     // 
     switch (InquiryData->DeviceType)
     {
@@ -113,7 +113,7 @@ USBSTOR_GetGenericType(
     }
 
     //
-    // FIXME: use constant - derrived from http://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type
+    // FIXME: use constant - derived from http://en.wikipedia.org/wiki/SCSI_Peripheral_Device_Type
     // 
     switch (InquiryData->DeviceType)
     {
index cd7172f..f477e9a 100644 (file)
@@ -162,8 +162,8 @@ typedef struct
     UCHAR LogicalBlockByte2;                                         // lba byte 2
     UCHAR LogicalBlockByte3;                                         // lba byte 3
     UCHAR Reserved;                                                  // reserved 0x00
-    UCHAR ContiguousLogicBlocksByte0;                                // msb contigious logic blocks byte
-    UCHAR ContiguousLogicBlocksByte1;                                // msb contigious logic blocks
+    UCHAR ContiguousLogicBlocksByte0;                                // msb contiguous logic blocks byte
+    UCHAR ContiguousLogicBlocksByte1;                                // msb contiguous logic blocks
     UCHAR Reserved1[3];                                              // reserved 0x00
 }UFI_READ_WRITE_CMD;
 
@@ -190,7 +190,7 @@ C_ASSERT(sizeof(UFI_CAPACITY_CMD) == 12);
 #define UFI_CAPACITY_CMD_LEN 0xA //FIXME support length 16 too if requested
 
 //
-// UFI Read Capcacity command response
+// UFI Read Capacity command response
 //
 typedef struct
 {
@@ -283,7 +283,7 @@ typedef struct
     UCHAR BlockLengthByte2;
 }UFI_CAPACITY_DESCRIPTOR, *PUFI_CAPACITY_DESCRIPTOR;
 
-#define UNFORMATED_MEDIA_CODE_DESCRIPTORY_TYPE (1)
+#define UNFORMATTED_MEDIA_CODE_DESCRIPTORY_TYPE (1)
 #define FORMAT_MEDIA_CODE_DESCRIPTOR_TYPE      (2)
 #define CARTRIDGE_MEDIA_CODE_DESCRIPTOR_TYPE   (3)
 
index 51358a6..3c0099c 100644 (file)
@@ -23,7 +23,7 @@ InterruptServiceRoutine(
 
 VOID
 NTAPI
-UhciDefferedRoutine(
+UhciDeferredRoutine(
     IN PKDPC Dpc,
     IN PVOID DeferredContext,
     IN PVOID SystemArgument1,
@@ -79,7 +79,7 @@ public:
 
     // friend function
     friend BOOLEAN NTAPI InterruptServiceRoutine(IN PKINTERRUPT  Interrupt, IN PVOID  ServiceContext);
-    friend VOID NTAPI UhciDefferedRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
+    friend VOID NTAPI UhciDeferredRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
     friend VOID NTAPI TimerDpcRoutine(IN PKDPC Dpc, IN PVOID DeferredContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2);
     friend VOID NTAPI StatusChangeWorkItemRoutine(PVOID Context);
     VOID WriteRegister8(IN ULONG Register, IN UCHAR value);
@@ -202,7 +202,7 @@ CUSBHardwareDevice::Initialize(
     KeInitializeSpinLock(&m_Lock);
 
     //
-    // intialize status change work item
+    // initialize status change work item
     //
     //ExInitializeWorkItem(&m_StatusChangeWorkItem, StatusChangeWorkItemRoutine, PVOID(this));
 
@@ -265,7 +265,7 @@ CUSBHardwareDevice::PnpStart(
             case CmResourceTypeInterrupt:
             {
                 KeInitializeDpc(&m_IntDpcObject,
-                                UhciDefferedRoutine,
+                                UhciDeferredRoutine,
                                 this);
 
                 Status = IoConnectInterrupt(&m_Interrupt,
@@ -1403,7 +1403,7 @@ CUSBHardwareDevice::GetQueueHead(
 
 VOID
 NTAPI
-UhciDefferedRoutine(
+UhciDeferredRoutine(
     IN PKDPC Dpc,
     IN PVOID DeferredContext,
     IN PVOID SystemArgument1,
@@ -1417,7 +1417,7 @@ UhciDefferedRoutine(
     //
     This = (CUSBHardwareDevice*)DeferredContext;
 
-    DPRINT("UhciDefferedRoutine\n");
+    DPRINT("UhciDeferredRoutine\n");
 
     //
     // get status
index 9f1c13e..75f4325 100644 (file)
@@ -37,7 +37,7 @@
 #define UHCI_USBCMD_RS                 0x01    // Run/Stop
 #define UHCI_USBCMD_HCRESET            0x02    // Host Controller Reset
 #define UHCI_USBCMD_GRESET             0x04    // Global Reset
-#define UHCI_USBCMD_EGSM               0x08    // Enter Global Suspensd mode
+#define UHCI_USBCMD_EGSM               0x08    // Enter Global Suspend mode
 #define UHCI_USBCMD_FGR                        0x10    // Force Global resume
 #define UHCI_USBCMD_SWDBG              0x20    // Software Debug
 #define UHCI_USBCMD_CF                 0x40    // Configure Flag
index f4adb57..ff6ebe0 100644 (file)
@@ -3,7 +3,7 @@
 
 //---------------------------------------------------------------------------
 //
-//          Object Hierachy
+//          Object Hierarchy
 //       --------------------------------------------------------------------
 //       |  IRootHCDController                                              |
 //       |    IHCDController Intel USB Universal Host Controller - 3A37     |
@@ -20,7 +20,7 @@
 //            
 //
 //  Each IHCDController creates an IUSBHardwareDevice class upon initialization. The 
-//  IUSBHardwardeDevice class is used to abstract usb controller specifics. The IHubController
+//  IUSBHardwareDevice class is used to abstract usb controller specifics. The IHubController
 //  manages all attached devices and handles hub control ioctl requests.
 //
 //  Each IUSBHardwareDevice has one IDMAMemoryManager and one IUSBQueue. The IDMAMemoryManager
index c831595..da71a08 100644 (file)
@@ -307,7 +307,7 @@ main(int argc, char* argv[])
            printf("Failed to get iocaps %lx\n", GetLastError());
         }
     }
-    printf("WDMAUD: Capabilites NumChannels %x dwFormats %lx\n", DeviceInfo.u.WaveOutCaps.wChannels, DeviceInfo.u.WaveOutCaps.dwFormats);
+    printf("WDMAUD: Capabilities NumChannels %x dwFormats %lx\n", DeviceInfo.u.WaveOutCaps.wChannels, DeviceInfo.u.WaveOutCaps.dwFormats);
 
     DeviceInfo.u.WaveFormatEx.cbSize = sizeof(WAVEFORMATEX);
     DeviceInfo.u.WaveFormatEx.wFormatTag = WAVE_FORMAT_PCM;
index f199890..f299d3c 100644 (file)
@@ -206,7 +206,7 @@ PHYSICAL_ADDRESS
 NTAPI
 CDmaChannelInit::PhysicalAddress()
 {
-    DPRINT("CDmaChannelInit_PhysicalAdress: this %p Virtuell %p Physical High %x Low %x%\n", this, m_Buffer, m_Address.HighPart, m_Address.LowPart);
+    DPRINT("CDmaChannelInit_PhysicalAddress: this %p Virtual %p Physical High %x Low %x%\n", this, m_Buffer, m_Address.HighPart, m_Address.LowPart);
 
     return m_Address;
 }
@@ -218,7 +218,7 @@ NTAPI
 CDmaChannelInit::PhysicalAddress(
     PPHYSICAL_ADDRESS Address)
 {
-    DPRINT("CDmaChannelInit_PhysicalAdress: this %p Virtuell %p Physical High %x Low %x%\n", this, m_Buffer, m_Address.HighPart, m_Address.LowPart);
+    DPRINT("CDmaChannelInit_PhysicalAddress: this %p Virtual %p Physical High %x Low %x%\n", this, m_Buffer, m_Address.HighPart, m_Address.LowPart);
 
     PHYSICAL_ADDRESS Result;
 
index d8f6772..e13e0c4 100644 (file)
@@ -1332,7 +1332,7 @@ ProcessResources
         ||  (lengthIO == 0)
         )
     {
-        DPRINT("Unknown ResourceList configuraton");
+        DPRINT("Unknown ResourceList configuration");
         ntStatus = STATUS_DEVICE_CONFIGURATION_ERROR;
     }
 
index ab84dc3..30dee7f 100644 (file)
@@ -412,7 +412,7 @@ PinSetStateWorkerRoutine(
 
         if (PinWorkContext->Pin->m_ConnectDetails->Interface.Id == KSINTERFACE_STANDARD_LOOPED_STREAMING && PinWorkContext->Pin->m_State == KSSTATE_STOP)
         {
-            /* FIXME complete pending irps with successfull state */
+            /* FIXME complete pending irps with successful state */
             PinWorkContext->Pin->m_IrpQueue->CancelBuffers();
         }
         //HACK
@@ -890,7 +890,7 @@ CPortPinWaveCyclic::DeviceIoControl(
             Property = (PKSPROPERTY)IoStack->Parameters.DeviceIoControl.Type3InputBuffer;
 
             RtlStringFromGUID(Property->Set, &GuidString);
-            DPRINT("Unhandeled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
+            DPRINT("Unhandled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
             RtlFreeUnicodeString(&GuidString);
         }
     }
@@ -912,7 +912,7 @@ CPortPinWaveCyclic::DeviceIoControl(
             //determine state of reset request
             if (ResetValue == KSRESET_BEGIN)
             {
-                // start reset procress
+                // start reset process
                 // incoming read/write requests will be rejected
                 m_ResetState = KSRESET_BEGIN;
 
@@ -1290,7 +1290,7 @@ CPortPinWaveCyclic::Init(
     m_CommonBufferSize = m_DmaChannel->AllocatedBufferSize();
     m_CommonBuffer = m_DmaChannel->SystemAddress();
     m_Capture = Capture;
-    // delay of 10 milisec
+    // delay of 10 millisec
     m_Delay = Int32x32To64(10, -10000);
 
     // sanity checks
index b493e4d..5781475 100644 (file)
@@ -528,7 +528,7 @@ CPortPinWavePci::HandleKsProperty(
         //Property = (PKSPROPERTY)IoStack->Parameters.DeviceIoControl.Type3InputBuffer;
 #if 0
         RtlStringFromGUID(Property->Set, &GuidString);
-        //DPRINT("Unhandeled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
+        //DPRINT("Unhandled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
         RtlFreeUnicodeString(&GuidString);
 #endif
     }
index c3c5690..6d3d99a 100644 (file)
@@ -275,7 +275,7 @@ CPortPinWaveRT::HandleKsProperty(
 
     }
     RtlStringFromGUID(Property->Set, &GuidString);
-    DPRINT("Unhandeled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
+    DPRINT("Unhandled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
     RtlFreeUnicodeString(&GuidString);
 
     Irp->IoStatus.Status = STATUS_NOT_IMPLEMENTED;
@@ -627,7 +627,7 @@ CPortPinWaveRT::Init(
         goto cleanup;
 
     m_Stream->GetHWLatency(&Latency);
-    // delay of 10 milisec
+    // delay of 10 millisec
     m_Delay = Int32x32To64(10, -10000);
 
     Status = m_Stream->AllocateAudioBuffer(16384 * 11, &m_Mdl, &m_CommonBufferSize, &m_CommonBufferOffset, &m_CacheType);
index a3b3d6d..a71d26a 100644 (file)
@@ -168,7 +168,7 @@ CPortDMus::GetDeviceProperty(
 
     if (!m_bInitialized)
     {
-        DPRINT("IPortDMus_fnNewRegistryKey called w/o initiazed\n");
+        DPRINT("IPortDMus_fnNewRegistryKey called w/o initialized\n");
         return STATUS_UNSUCCESSFUL;
     }
 
@@ -285,7 +285,7 @@ CPortDMus::Init(
 
     if (!NT_SUCCESS(Status))
     {
-        DPRINT("Failed to create descriptior\n");
+        DPRINT("Failed to create descriptor\n");
 
         if (Miniport)
             Miniport->Release();
index 6bb76aa..9b91bf4 100644 (file)
@@ -197,7 +197,7 @@ CPortTopology::GetDeviceProperty(
 
     if (!m_bInitialized)
     {
-        DPRINT("IPortTopology_fnNewRegistryKey called w/o initiazed\n");
+        DPRINT("IPortTopology_fnNewRegistryKey called w/o initialized\n");
         return STATUS_UNSUCCESSFUL;
     }
 
index f4da819..f063766 100644 (file)
@@ -329,7 +329,7 @@ CPortWavePci::Init(
         m_pPowerNotify = PowerNotify;
     }
 
-    DPRINT("IPortWavePci_Init sucessfully initialized\n");
+    DPRINT("IPortWavePci_Init successfully initialized\n");
     return STATUS_SUCCESS;
 }
 
index 71e8482..b786653 100644 (file)
@@ -202,7 +202,7 @@ CPortWaveRT::GetDeviceProperty(
 
     if (!m_bInitialized)
     {
-        DPRINT("IPortWaveRT_fnNewRegistryKey called w/o initiazed\n");
+        DPRINT("IPortWaveRT_fnNewRegistryKey called w/o initialized\n");
         return STATUS_UNSUCCESSFUL;
     }
 
index 28dce39..da37874 100644 (file)
@@ -129,7 +129,7 @@ HandleDataIntersection(
 
     for(Index = 0; Index < MultipleItem->Count; Index++)
     {
-        // Call miniport's properitary handler
+        // Call miniport's proprietary handler
         PC_ASSERT(Descriptor->Factory.KsPinDescriptor[Pin->PinId].DataRangesCount);
         PC_ASSERT(Descriptor->Factory.KsPinDescriptor[Pin->PinId].DataRanges[0]);
         Status = SubDevice->DataRangeIntersection(Pin->PinId, DataRange, (PKSDATARANGE)Descriptor->Factory.KsPinDescriptor[Pin->PinId].DataRanges[0],
index 422c5aa..50ebd73 100644 (file)
@@ -141,7 +141,7 @@ CServiceGroup::RequestService()
     }
     else
     {
-        // check curent irql
+        // check current irql
         if (KeGetCurrentIrql() > DISPATCH_LEVEL)
         {
             //insert dpc to queue
index d4249be..434a8d4 100644 (file)
@@ -391,7 +391,7 @@ ASSERT(PropertyItem->Set);
         SubDeviceDescriptor->FilterPropertySet[PropertySetIndex].PropertiesCount = 0;
     }
 
-    // as the property set has been indentified, now search for duplicate property set item entries
+    // as the property set has been identified, now search for duplicate property set item entries
     FilterPropertyItem = (PKSPROPERTY_ITEM)SubDeviceDescriptor->FilterPropertySet[PropertySetIndex].PropertyItem;
     bFound = FALSE;
 
@@ -523,7 +523,7 @@ VOID
 DumpAutomationTable(
     IN PPCAUTOMATION_TABLE AutomationTable,
     IN LPCWSTR DebugPrefix,
-    IN LPCWSTR DebugIdentation)
+    IN LPCWSTR DebugIndentation)
 {
     PPCPROPERTY_ITEM PropertyItem;
     PPCEVENT_ITEM EventItem;
@@ -538,10 +538,10 @@ DumpAutomationTable(
     }
 
     DPRINT("=====================================================================\n");
-    DPRINT("%S%S AutomationTable %p\n", DebugIdentation, DebugPrefix, AutomationTable);
-    DPRINT("%S%S PropertyCount %lu\n", DebugIdentation, DebugPrefix, AutomationTable->PropertyCount);
-    DPRINT("%S%S EventCount %lu\n", DebugIdentation, DebugPrefix, AutomationTable->EventCount);
-    DPRINT("%S%S MethodCount %lu\n", DebugIdentation, DebugPrefix, AutomationTable->MethodCount);
+    DPRINT("%S%S AutomationTable %p\n", DebugIndentation, DebugPrefix, AutomationTable);
+    DPRINT("%S%S PropertyCount %lu\n", DebugIndentation, DebugPrefix, AutomationTable->PropertyCount);
+    DPRINT("%S%S EventCount %lu\n", DebugIndentation, DebugPrefix, AutomationTable->EventCount);
+    DPRINT("%S%S MethodCount %lu\n", DebugIndentation, DebugPrefix, AutomationTable->MethodCount);
 
     // print properties
     if (AutomationTable->PropertyCount)
@@ -559,7 +559,7 @@ DumpAutomationTable(
             {
                 // convert to printable string
                 RtlStringFromGUID(*PropertyItem->Set, &GuidString);
-                DPRINT("%SPropertyItemIndex %lu %p GUID %S Id %u Flags %x\n", DebugIdentation, Index, PropertyItem, GuidString.Buffer, PropertyItem->Id, PropertyItem->Flags);
+                DPRINT("%SPropertyItemIndex %lu %p GUID %S Id %u Flags %x\n", DebugIndentation, Index, PropertyItem, GuidString.Buffer, PropertyItem->Id, PropertyItem->Flags);
                 RtlFreeUnicodeString(&GuidString);
                 // move to next item
                 PropertyItem = (PPCPROPERTY_ITEM)((ULONG_PTR)PropertyItem + AutomationTable->PropertyItemSize);
@@ -587,7 +587,7 @@ DumpAutomationTable(
             {
                 // convert to printable string
                 RtlStringFromGUID(*EventItem->Set, &GuidString);
-                DPRINT("%SEventItemIndex %lu %p GUID %S Id %u Flags %x\n", DebugIdentation, Index, EventItem, GuidString.Buffer, EventItem->Id, EventItem->Flags);
+                DPRINT("%SEventItemIndex %lu %p GUID %S Id %u Flags %x\n", DebugIndentation, Index, EventItem, GuidString.Buffer, EventItem->Id, EventItem->Flags);
                 RtlFreeUnicodeString(&GuidString);
 
                 // move to next item
@@ -615,7 +615,7 @@ DumpAutomationTable(
             {
                 // convert to printable string
                 RtlStringFromGUID(*MethodItem->Set, &GuidString);
-                DPRINT("%SMethodItemIndex %lu %p GUID %S Id %u Flags %x\n", DebugIdentation, Index, MethodItem, GuidString.Buffer, MethodItem->Id, MethodItem->Flags);
+                DPRINT("%SMethodItemIndex %lu %p GUID %S Id %u Flags %x\n", DebugIndentation, Index, MethodItem, GuidString.Buffer, MethodItem->Id, MethodItem->Flags);
                 RtlFreeUnicodeString(&GuidString);
 
                 // move to next item
index 1a7c286..ac40e9c 100644 (file)
@@ -133,7 +133,7 @@ If you know why this is happening or why the XP mixer tries to render the AC3 pi
 
 0.9.5:
 - recording support for Windows Vista
-- selection of spdif-in suppported
+- selection of spdif-in supported
 - recording mixer fix for XP
 
 0.9.4a:
index be1abc4..93ca605 100644 (file)
@@ -123,7 +123,7 @@ DrmForwardContentToInterface(
 }
 
 /*
-    Retrieves DRM Content rights that have been assigend to a DRM Content ID.
+    Retrieves DRM Content rights that have been assigned to a DRM Content ID.
 */
 /*
  * @unimplemented
index 2af2129..940db61 100644 (file)
@@ -37,7 +37,7 @@ HDA_TransferCodecVerbs(
     ULONG Index;
     PHDA_PDO_DEVICE_EXTENSION DeviceExtension;
 
-    DPRINT1("HDA_TransferCodecVerbs Coun %lu CodecTransfer %p Callback %p Context %p\n", Count, CodecTransfer, Callback, Context);
+    DPRINT1("HDA_TransferCodecVerbs Count %lu CodecTransfer %p Callback %p Context %p\n", Count, CodecTransfer, Callback, Context);
 
     /* get device extension */
     DeviceExtension = (PHDA_PDO_DEVICE_EXTENSION)_context;
index 4b40023..20a2fca 100644 (file)
@@ -351,7 +351,7 @@ HDA_InitCorbRirbPos(
     value = READ_REGISTER_USHORT((PUSHORT)(DeviceExtension->RegBase + HDAC_CORB_WRITE_POS)) & HDAC_CORB_WRITE_POS_MASK;
     WRITE_REGISTER_USHORT((PUSHORT)(DeviceExtension->RegBase + HDAC_CORB_WRITE_POS), value);
 
-    // Reset CORB read pointer. Preseve bits marked as RsvdP.
+    // Reset CORB read pointer. Preserve bits marked as RsvdP.
     // After setting the reset bit, we must wait for the hardware
     // to acknowledge it, then manually unset it and wait for that
     // to be acknowledged as well.
index 8e80404..fcc6681 100644 (file)
@@ -373,7 +373,7 @@ WdmAudDeviceControl(
         case IOCTL_GETVOLUME:
         case IOCTL_SETVOLUME:
 
-           DPRINT1("Unhandeled %x\n", IoStack->Parameters.DeviceIoControl.IoControlCode);
+           DPRINT1("Unhandled %x\n", IoStack->Parameters.DeviceIoControl.IoControlCode);
            break;
     }
 
@@ -485,7 +485,7 @@ WdmAudReadWrite(
     /* store mdl address */
     Mdl = Irp->MdlAddress;
 
-    /* remove mdladdress as KsProbeStreamIrp will interprete it as an already probed audio buffer */
+    /* remove mdladdress as KsProbeStreamIrp will interpret it as an already probed audio buffer */
     Irp->MdlAddress = NULL;
 
     if (IoStack->MajorFunction == IRP_MJ_WRITE)
index 025bebb..a6877e3 100644 (file)
@@ -76,8 +76,8 @@ typedef struct
 ///              InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:        DeviceType identifies the device type, DeviceIndex the index, WaveFormatEx the device details
 /// Result:      is returned in hDevice
-/// Return Code: STATUS_SUCCESS indicates success, otherwise appropiate error code
-/// Prequsites:  none
+/// Return Code: STATUS_SUCCESS indicates success, otherwise appropriate error code
+/// Prerequisites:  none
 
 #define IOCTL_OPEN_WDMAUD \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -94,7 +94,7 @@ typedef struct
 ///              InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:        DeviceType, DeviceIndex and hDevice must be set
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: openend device
+/// Prerequisites: openend device
 
 #define IOCTL_CLOSE_WDMAUD \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -112,7 +112,7 @@ typedef struct
 /// Note:       The DeviceType contains the requested device type.
 /// Result:     The result is returned in DeviceCount
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: none
+/// Prerequisites: none
 
 #define IOCTL_GETNUMDEVS_TYPE \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -129,7 +129,7 @@ typedef struct
 ///             InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:       The DeviceType, DeviceIndex, hDevice and State member must be set. State determines the new state
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_SETDEVICE_STATE \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -147,7 +147,7 @@ typedef struct
 /// Note:       The DeviceType and hDevice must be set
 /// Result:     The result is returned in DeviceIndex
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETDEVID \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -165,7 +165,7 @@ typedef struct
 /// Note:       The DeviceType and hDevice must be set
 /// Result:     The result is returned in Volume
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETVOLUME \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -182,7 +182,7 @@ typedef struct
 ///             InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:       The DeviceType, hDevice and Volume must be set
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_SETVOLUME \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -191,15 +191,15 @@ typedef struct
              FILE_CREATE_TREE_CONNECTION | FILE_ANY_ACCESS)
 
 
-/// IOCTL_GETCAPABILTIES
+/// IOCTL_GETCAPABILITIES
 ///
-/// Description: This IOCTL retrieves the capabilties of an specific device
+/// Description: This IOCTL retrieves the capabilities of an specific device
 ///
 /// Arguments:  InputBuffer is a pointer to a WDMAUD_DEVICE_INFO structure,
 ///             InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:       The DeviceType and DeviceIndex must be set
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: none
+/// Prerequisites: none
 
 #define IOCTL_GETCAPABILITIES \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -216,7 +216,7 @@ typedef struct
 ///             InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:       The DeviceType, DeviceIndex, hDevice, BufferSize and Buffer must be set
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_WRITEDATA \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -233,7 +233,7 @@ typedef struct
 /// Note:       The DeviceType and hDevice must be set
 /// Result:     The result is returned in Position
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETPOS \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -250,7 +250,7 @@ typedef struct
 /// Note:       The DeviceType and hDevice must be set
 /// Result:     The result is returned in FrameSize
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETFRAMESIZE \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -267,7 +267,7 @@ typedef struct
 /// Note:       The hDevice member must be set
 /// Result:     The result is returned in MixLine
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETLINEINFO \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -285,7 +285,7 @@ typedef struct
 /// Note:       The hDevice member must be set
 /// Result:     The result is returned in MixControls
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETLINECONTROLS \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -302,7 +302,7 @@ typedef struct
 ///             InputBufferSize is size of WDMAUD_DEVICE_INFO structure
 /// Note:       The hDevice member must be set
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_SETCONTROLDETAILS \
     CTL_CODE(FILE_DEVICE_SOUND, \
@@ -320,7 +320,7 @@ typedef struct
 /// Note:       The hDevice member must be set
 /// Result:     The result is returned in MixDetails
 /// ReturnCode:  STATUS_SUCCESS indicates success
-/// Prequsites: opened device
+/// Prerequisites: opened device
 
 #define IOCTL_GETCONTROLDETAILS \
     CTL_CODE(FILE_DEVICE_SOUND, \
index 2d8dbd8..8623b53 100644 (file)
@@ -266,7 +266,7 @@ Enum(
         return MM_STATUS_UNSUCCESSFUL;
     }
 
-    /* intialize key name */
+    /* initialize key name */
     RtlInitUnicodeString(&KeyName, *DeviceName);
 
     /* open device interface key */
index bf5568b..9932d09 100644 (file)
@@ -456,7 +456,7 @@ SysAudioHandleProperty(
     }
 
     RtlStringFromGUID(&Property->Set, &GuidString);
-    DPRINT1("Unhandeled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
+    DPRINT1("Unhandled property Set |%S| Id %u Flags %x\n", GuidString.Buffer, Property->Id, Property->Flags);
     RtlFreeUnicodeString(&GuidString);
     return SetIrpIoStatus(Irp, STATUS_UNSUCCESSFUL, 0);
 }
index e350c0a..ee79461 100644 (file)
@@ -219,7 +219,7 @@ SysAudio_AddDevice(
      NextDeviceObject = IoAttachDeviceToDeviceStack(DeviceObject, PhysicalDeviceObject);
      KsSetDevicePnpAndBaseObject(DeviceExtension->KsDeviceHeader, NextDeviceObject, DeviceObject);
 
-     /* register shutdown notfication */
+     /* register shutdown notification */
      IoRegisterShutdownNotification(DeviceObject);
 
 
index c6cec4a..492be35 100644 (file)
@@ -2,7 +2,7 @@
  * PROJECT:         ReactOS WMI driver
  * COPYRIGHT:       GPL - See COPYING in the top level directory
  * FILE:            drivers/wmi/wmilib.c
- * PURPOSE:         Windows Management Intstrumentation
+ * PURPOSE:         Windows Management Instrumentation
  * PROGRAMMERS:     Aleksey Bragin (aleksey@reactos.org)
  *                  
  */