From 5c2f126896823cb6d95dbaea3b67152b3d24c8a9 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Sun, 13 Nov 2016 15:31:39 +0000 Subject: [PATCH] [DRIVERS] Spelling fixes by Josh Soref. CORE-12286 svn path=/trunk/; revision=73226 --- reactos/drivers/base/beep/beep.c | 4 +- reactos/drivers/base/bootvid/arm/bootvid.c | 2 +- reactos/drivers/base/bootvid/i386/bootvid.c | 2 +- reactos/drivers/base/bootvid/i386/vga.c | 6 +-- reactos/drivers/base/kdcom/kddll.c | 4 +- reactos/drivers/base/kdcom/kdserial.c | 4 +- reactos/drivers/base/kdgdb/gdb_input.c | 2 +- reactos/drivers/base/kdgdb/kdgdb.h | 2 +- reactos/drivers/bus/acpi/busmgr/bus.c | 4 +- reactos/drivers/bus/acpi/busmgr/power.c | 4 +- reactos/drivers/bus/acpi/busmgr/system.c | 4 +- reactos/drivers/bus/acpi/busmgr/utils.c | 4 +- reactos/drivers/bus/acpi/buspdo.c | 2 +- reactos/drivers/bus/acpi/cmbatt/cmbatt.c | 2 +- reactos/drivers/bus/acpi/cmbatt/cmbatt.h | 2 +- reactos/drivers/bus/acpi/cmbatt/cmbpnp.c | 4 +- reactos/drivers/bus/acpi/include/acpi_bus.h | 2 +- reactos/drivers/bus/pci/pcidef.h | 2 +- reactos/drivers/bus/pcix/enum.c | 8 ++-- reactos/drivers/bus/pcix/hookhal.c | 2 +- reactos/drivers/bus/pcix/intrface/intrface.c | 2 +- reactos/drivers/bus/pcix/pci/ppbridge.c | 2 +- reactos/drivers/bus/pcix/power.c | 2 +- reactos/drivers/bus/pcix/utils.c | 6 +-- reactos/drivers/filesystems/cdfs/fcb.c | 2 +- .../drivers/filesystems/cdfs_new/allocsup.c | 4 +- reactos/drivers/filesystems/cdfs_new/cd.h | 2 +- reactos/drivers/filesystems/cdfs_new/cddata.h | 2 +- .../drivers/filesystems/cdfs_new/cdstruc.h | 12 ++--- reactos/drivers/filesystems/cdfs_new/close.c | 2 +- .../drivers/filesystems/cdfs_new/deviosup.c | 8 ++-- .../drivers/filesystems/cdfs_new/dirctrl.c | 8 ++-- reactos/drivers/filesystems/cdfs_new/dirsup.c | 8 ++-- reactos/drivers/filesystems/cdfs_new/fsctrl.c | 8 ++-- .../drivers/filesystems/cdfs_new/namesup.c | 10 ++-- .../drivers/filesystems/cdfs_new/pathsup.c | 12 ++--- reactos/drivers/filesystems/cdfs_new/pnp.c | 10 ++-- .../drivers/filesystems/cdfs_new/resrcsup.c | 2 +- .../drivers/filesystems/cdfs_new/strucsup.c | 14 +++--- .../drivers/filesystems/cdfs_new/verfysup.c | 4 +- .../drivers/filesystems/cdfs_new/volinfo.c | 8 ++-- .../filesystems/cdfs_new/wdk_wnet_to_ros.diff | 14 +++--- .../drivers/filesystems/cdfs_new/workque.c | 4 +- reactos/drivers/filesystems/fastfat/create.c | 2 +- .../drivers/filesystems/fastfat/direntry.c | 2 +- reactos/drivers/filesystems/fastfat/dirwr.c | 2 +- reactos/drivers/filesystems/fastfat/fsctl.c | 6 +-- reactos/drivers/filesystems/fastfat/vfat.h | 2 +- reactos/drivers/filesystems/fs_rec/fs_rec.c | 4 +- reactos/drivers/filesystems/fs_rec/reiserfs.h | 2 +- reactos/drivers/filesystems/mup/mup.c | 8 ++-- reactos/drivers/filesystems/ntfs/create.c | 2 +- reactos/drivers/filesystems/ntfs/fcb.c | 2 +- reactos/drivers/filesystems/ntfs/ntfs.h | 2 +- reactos/drivers/filters/fltmgr/Interface.c | 8 ++-- reactos/drivers/filters/fltmgr/fltmgr.h | 2 +- reactos/drivers/filters/mountmgr/database.c | 4 +- reactos/drivers/filters/mountmgr/device.c | 2 +- reactos/drivers/filters/mountmgr/mountmgr.c | 4 +- reactos/drivers/filters/mountmgr/notify.c | 2 +- reactos/drivers/filters/mountmgr/symlink.c | 2 +- reactos/drivers/hid/hidclass/fdo.c | 2 +- reactos/drivers/input/i8042prt/keyboard.c | 4 +- reactos/drivers/input/i8042prt/misc.c | 2 +- reactos/drivers/input/kbdclass/kbdclass.c | 2 +- reactos/drivers/input/kbdclass/misc.c | 2 +- reactos/drivers/input/mouclass/misc.c | 2 +- reactos/drivers/input/mouclass/mouclass.c | 2 +- reactos/drivers/input/sermouse/misc.c | 2 +- reactos/drivers/input/sermouse/sermouse.txt | 4 +- reactos/drivers/ksfilter/ks/api.c | 2 +- reactos/drivers/ksfilter/ks/clocks.c | 4 +- reactos/drivers/ksfilter/ks/filter.c | 4 +- reactos/drivers/ksfilter/ks/irp.c | 8 ++-- reactos/drivers/ksfilter/ks/pin.c | 20 ++++---- reactos/drivers/ksfilter/ks/worker.c | 2 +- .../drivers/multimedia/audio/sound/mixer.h | 2 +- reactos/drivers/multimedia/audio/sound/wave.c | 2 +- reactos/drivers/network/afd/afd/read.c | 2 +- reactos/drivers/network/afd/afd/write.c | 2 +- .../network/dd/ne2000/include/ne2000.h | 2 +- .../drivers/network/dd/ne2000/ne2000/main.c | 2 +- reactos/drivers/network/dd/pcnet/pcnet.c | 6 +-- reactos/drivers/network/dd/pcnet/pcnet.h | 2 +- reactos/drivers/network/dd/pcnet/pcnethw.h | 2 +- reactos/drivers/network/dd/pcnet/requests.c | 4 +- reactos/drivers/network/dd/rtl8139/rtlhw.h | 2 +- reactos/drivers/network/lan/lan/lan.c | 2 +- reactos/drivers/network/lan/lan/routines.c | 2 +- reactos/drivers/network/ndis/ndis/buffer.c | 2 +- reactos/drivers/network/ndis/ndis/config.c | 2 +- reactos/drivers/network/ndis/ndis/efilter.c | 2 +- reactos/drivers/network/ndis/ndis/io.c | 8 ++-- reactos/drivers/network/ndis/ndis/main.c | 2 +- reactos/drivers/network/ndis/ndis/miniport.c | 6 +-- reactos/drivers/network/ndis/ndis/protocol.c | 2 +- reactos/drivers/network/ndis/ndis/time.c | 6 +-- reactos/drivers/network/tcpip/datalink/lan.c | 4 +- reactos/drivers/network/tcpip/include/linux.h | 8 ++-- .../drivers/network/tcpip/include/tcpcore.h | 10 ++-- .../drivers/network/tcpip/include/tcpdef.h | 2 +- .../drivers/network/tcpip/include/ticonsts.h | 2 +- .../drivers/network/tcpip/include/titypes.h | 2 +- reactos/drivers/network/tcpip/tcpip/buffer.c | 4 +- .../drivers/network/tcpip/tcpip/dispatch.c | 2 +- .../drivers/network/tcpip/tcpip/mockbuffer.c | 4 +- .../network/tcpip/tests/tests/ipreceive.c | 2 +- reactos/drivers/network/tdi/tdi/obsolete.c | 2 +- reactos/drivers/parallel/parallel/parallel.h | 2 +- reactos/drivers/parallel/parport/fdo.c | 2 +- reactos/drivers/sac/driver/concmd.c | 2 +- reactos/drivers/sac/driver/conmgr.c | 2 +- reactos/drivers/sac/driver/dispatch.c | 2 +- reactos/drivers/sac/driver/memory.c | 4 +- reactos/drivers/sac/driver/sacdrv.h | 6 +-- reactos/drivers/sac/driver/util.c | 10 ++-- reactos/drivers/sac/driver/vtutf8chan.c | 2 +- reactos/drivers/serial/serenum/misc.c | 2 +- reactos/drivers/serial/serial/misc.c | 2 +- reactos/drivers/storage/class/cdrom/cdrom.c | 8 ++-- .../drivers/storage/class/cdrom_new/cdrom.c | 18 +++---- .../drivers/storage/class/cdrom_new/cdrom.h | 2 +- .../drivers/storage/class/cdrom_new/cdrom.inf | 2 +- .../drivers/storage/class/cdrom_new/data.c | 2 +- reactos/drivers/storage/class/cdrom_new/mmc.c | 4 +- reactos/drivers/storage/class/class2/class2.c | 34 ++++++------- reactos/drivers/storage/class/disk/disk.c | 48 +++++++++---------- reactos/drivers/storage/class/disk_new/disk.c | 24 +++++----- reactos/drivers/storage/class/disk_new/disk.h | 6 +-- .../drivers/storage/class/disk_new/diskwmi.c | 4 +- .../drivers/storage/class/disk_new/geometry.c | 6 +-- reactos/drivers/storage/class/disk_new/part.c | 2 +- reactos/drivers/storage/class/disk_new/pnp.c | 6 +-- reactos/drivers/storage/classpnp/autorun.c | 4 +- reactos/drivers/storage/classpnp/class.c | 36 +++++++------- reactos/drivers/storage/classpnp/classp.h | 2 +- reactos/drivers/storage/classpnp/classwmi.c | 4 +- reactos/drivers/storage/classpnp/lock.c | 2 +- reactos/drivers/storage/classpnp/obsolete.c | 2 +- reactos/drivers/storage/classpnp/power.c | 4 +- reactos/drivers/storage/classpnp/utils.c | 20 ++++---- reactos/drivers/storage/fdc/fdc/fdc.rc | 2 +- reactos/drivers/storage/fdc/fdc/fdo.c | 2 +- reactos/drivers/storage/floppy/floppy.c | 12 ++--- reactos/drivers/storage/floppy/floppy.rc | 2 +- reactos/drivers/storage/floppy/hardware.c | 2 +- reactos/drivers/storage/floppy/hardware.h | 2 +- reactos/drivers/storage/floppy/ioctl.c | 2 +- reactos/drivers/storage/floppy/readwrite.c | 4 +- reactos/drivers/storage/ide/atapi/atapi.c | 22 ++++----- reactos/drivers/storage/ide/pciidex/misc.c | 2 +- reactos/drivers/storage/inc/ide.h | 4 +- reactos/drivers/storage/inc/rbc.h | 2 +- .../storage/port/buslogic/BusLogic958.c | 18 +++---- .../storage/port/buslogic/BusLogic958.h | 8 ++-- reactos/drivers/storage/port/buslogic/Log.c | 2 +- reactos/drivers/storage/port/buslogic/wmi.c | 8 ++-- reactos/drivers/storage/scsiport/scsiport.c | 14 +++--- reactos/drivers/usb/usbccgp/descriptor.c | 2 +- reactos/drivers/usb/usbccgp/fdo.c | 2 +- reactos/drivers/usb/usbd/usbd.c | 2 +- reactos/drivers/usb/usbehci/hardware.cpp | 10 ++-- reactos/drivers/usb/usbehci/usb_queue.cpp | 4 +- reactos/drivers/usb/usbehci/usb_request.cpp | 2 +- reactos/drivers/usb/usbhub/misc.c | 2 +- reactos/drivers/usb/usbhub/pdo.c | 4 +- reactos/drivers/usb/usbohci/hardware.cpp | 14 +++--- reactos/drivers/usb/usbohci/usb_queue.cpp | 2 +- reactos/drivers/usb/usbohci/usb_request.cpp | 4 +- reactos/drivers/usb/usbstor/descriptor.c | 2 +- reactos/drivers/usb/usbstor/disk.c | 2 +- reactos/drivers/usb/usbstor/fdo.c | 2 +- reactos/drivers/usb/usbstor/pdo.c | 4 +- reactos/drivers/usb/usbstor/usbstor.h | 8 ++-- reactos/drivers/usb/usbuhci/hardware.cpp | 12 ++--- reactos/drivers/usb/usbuhci/hardware.h | 2 +- reactos/drivers/usb/usbuhci/interfaces.h | 4 +- .../wdm/audio/backpln/audio_test/audio_test.c | 2 +- .../wdm/audio/backpln/portcls/dma_slave.cpp | 4 +- .../audio/backpln/portcls/miniport_dmus.cpp | 2 +- .../audio/backpln/portcls/pin_wavecyclic.cpp | 8 ++-- .../wdm/audio/backpln/portcls/pin_wavepci.cpp | 2 +- .../wdm/audio/backpln/portcls/pin_wavert.cpp | 4 +- .../wdm/audio/backpln/portcls/port_dmus.cpp | 4 +- .../audio/backpln/portcls/port_topology.cpp | 2 +- .../audio/backpln/portcls/port_wavepci.cpp | 2 +- .../wdm/audio/backpln/portcls/port_wavert.cpp | 2 +- .../audio/backpln/portcls/propertyhandler.cpp | 2 +- .../audio/backpln/portcls/service_group.cpp | 2 +- .../wdm/audio/backpln/portcls/undoc.cpp | 18 +++---- .../wdm/audio/drivers/CMIDriver/CHANGELOG.txt | 2 +- reactos/drivers/wdm/audio/drm/drmk/stubs.cpp | 2 +- .../wdm/audio/hdaudbus/businterface.cpp | 2 +- reactos/drivers/wdm/audio/hdaudbus/fdo.cpp | 2 +- .../drivers/wdm/audio/legacy/wdmaud/control.c | 4 +- .../wdm/audio/legacy/wdmaud/interface.h | 36 +++++++------- .../drivers/wdm/audio/legacy/wdmaud/mmixer.c | 2 +- reactos/drivers/wdm/audio/sysaudio/control.c | 2 +- reactos/drivers/wdm/audio/sysaudio/main.c | 2 +- reactos/drivers/wmi/wmilib.c | 2 +- 200 files changed, 507 insertions(+), 507 deletions(-) diff --git a/reactos/drivers/base/beep/beep.c b/reactos/drivers/base/beep/beep.c index 7eb64c2390b..e5e8e4258ab 100644 --- a/reactos/drivers/base/beep/beep.c +++ b/reactos/drivers/base/beep/beep.c @@ -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 diff --git a/reactos/drivers/base/bootvid/arm/bootvid.c b/reactos/drivers/base/bootvid/arm/bootvid.c index 4ae37a53a7c..16ba24c6a7a 100644 --- a/reactos/drivers/base/bootvid/arm/bootvid.c +++ b/reactos/drivers/base/bootvid/arm/bootvid.c @@ -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') diff --git a/reactos/drivers/base/bootvid/i386/bootvid.c b/reactos/drivers/base/bootvid/i386/bootvid.c index 280c2c59d16..333e5de4faa 100644 --- a/reactos/drivers/base/bootvid/i386/bootvid.c +++ b/reactos/drivers/base/bootvid/i386/bootvid.c @@ -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 */ diff --git a/reactos/drivers/base/bootvid/i386/vga.c b/reactos/drivers/base/bootvid/i386/vga.c index 3efed459d58..dcb02837512 100644 --- a/reactos/drivers/base/bootvid/i386/vga.c +++ b/reactos/drivers/base/bootvid/i386/vga.c @@ -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++; } diff --git a/reactos/drivers/base/kdcom/kddll.c b/reactos/drivers/base/kdcom/kddll.c index 1779ef94d16..7bae16d7c7e 100644 --- a/reactos/drivers/base/kdcom/kddll.c +++ b/reactos/drivers/base/kdcom/kddll.c @@ -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); diff --git a/reactos/drivers/base/kdcom/kdserial.c b/reactos/drivers/base/kdcom/kdserial.c index 274f7c354be..35f311d4d6a 100644 --- a/reactos/drivers/base/kdcom/kdserial.c +++ b/reactos/drivers/base/kdcom/kdserial.c @@ -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. diff --git a/reactos/drivers/base/kdgdb/gdb_input.c b/reactos/drivers/base/kdgdb/gdb_input.c index c6e5ff906ef..9331dbd9e8c 100644 --- a/reactos/drivers/base/kdgdb/gdb_input.c +++ b/reactos/drivers/base/kdgdb/gdb_input.c @@ -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"); } diff --git a/reactos/drivers/base/kdgdb/kdgdb.h b/reactos/drivers/base/kdgdb/kdgdb.h index 180320f108c..d2f4cd1de34 100644 --- a/reactos/drivers/base/kdgdb/kdgdb.h +++ b/reactos/drivers/base/kdgdb/kdgdb.h @@ -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; diff --git a/reactos/drivers/bus/acpi/busmgr/bus.c b/reactos/drivers/bus/acpi/busmgr/bus.c index b0b6a4d4db7..7873858dca6 100644 --- a/reactos/drivers/bus/acpi/busmgr/bus.c +++ b/reactos/drivers/bus/acpi/busmgr/bus.c @@ -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); } diff --git a/reactos/drivers/bus/acpi/busmgr/power.c b/reactos/drivers/bus/acpi/busmgr/power.c index f810e9108d0..01fd57663a2 100644 --- a/reactos/drivers/bus/acpi/busmgr/power.c +++ b/reactos/drivers/bus/acpi/busmgr/power.c @@ -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; diff --git a/reactos/drivers/bus/acpi/busmgr/system.c b/reactos/drivers/bus/acpi/busmgr/system.c index c5a952ceb10..b78374d9299 100644 --- a/reactos/drivers/bus/acpi/busmgr/system.c +++ b/reactos/drivers/bus/acpi/busmgr/system.c @@ -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); diff --git a/reactos/drivers/bus/acpi/busmgr/utils.c b/reactos/drivers/bus/acpi/busmgr/utils.c index 0c7428323f5..8a09cef4f5c 100644 --- a/reactos/drivers/bus/acpi/busmgr/utils.c +++ b/reactos/drivers/bus/acpi/busmgr/utils.c @@ -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; } diff --git a/reactos/drivers/bus/acpi/buspdo.c b/reactos/drivers/bus/acpi/buspdo.c index 87e7e3f9082..3a670c927ec 100644 --- a/reactos/drivers/bus/acpi/buspdo.c +++ b/reactos/drivers/bus/acpi/buspdo.c @@ -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; diff --git a/reactos/drivers/bus/acpi/cmbatt/cmbatt.c b/reactos/drivers/bus/acpi/cmbatt/cmbatt.c index a9bddd4e603..775f755c134 100644 --- a/reactos/drivers/bus/acpi/cmbatt/cmbatt.c +++ b/reactos/drivers/bus/acpi/cmbatt/cmbatt.c @@ -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) { diff --git a/reactos/drivers/bus/acpi/cmbatt/cmbatt.h b/reactos/drivers/bus/acpi/cmbatt/cmbatt.h index c1f08412c62..bc16b28d432 100644 --- a/reactos/drivers/bus/acpi/cmbatt/cmbatt.h +++ b/reactos/drivers/bus/acpi/cmbatt/cmbatt.h @@ -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; diff --git a/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c b/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c index f57b55f86e5..baddaa6efa9 100644 --- a/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c +++ b/reactos/drivers/bus/acpi/cmbatt/cmbpnp.c @@ -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 { diff --git a/reactos/drivers/bus/acpi/include/acpi_bus.h b/reactos/drivers/bus/acpi/include/acpi_bus.h index 148373f6608..fac72095a5b 100644 --- a/reactos/drivers/bus/acpi/include/acpi_bus.h +++ b/reactos/drivers/bus/acpi/include/acpi_bus.h @@ -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; diff --git a/reactos/drivers/bus/pci/pcidef.h b/reactos/drivers/bus/pci/pcidef.h index 73f4caf3eb3..8a098104d03 100644 --- a/reactos/drivers/bus/pci/pcidef.h +++ b/reactos/drivers/bus/pci/pcidef.h @@ -206,7 +206,7 @@ #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 */ diff --git a/reactos/drivers/bus/pcix/enum.c b/reactos/drivers/bus/pcix/enum.c index 77806679e94..8c4caa938a1 100644 --- a/reactos/drivers/bus/pcix/enum.c +++ b/reactos/drivers/bus/pcix/enum.c @@ -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) && diff --git a/reactos/drivers/bus/pcix/hookhal.c b/reactos/drivers/bus/pcix/hookhal.c index bb8669cba46..04e79793118 100644 --- a/reactos/drivers/bus/pcix/hookhal.c +++ b/reactos/drivers/bus/pcix/hookhal.c @@ -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; } diff --git a/reactos/drivers/bus/pcix/intrface/intrface.c b/reactos/drivers/bus/pcix/intrface/intrface.c index e430bd58e1f..ee5215f9cfa 100644 --- a/reactos/drivers/bus/pcix/intrface/intrface.c +++ b/reactos/drivers/bus/pcix/intrface/intrface.c @@ -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; } diff --git a/reactos/drivers/bus/pcix/pci/ppbridge.c b/reactos/drivers/bus/pcix/pci/ppbridge.c index 2d0303d98ee..09fb1ea60e2 100644 --- a/reactos/drivers/bus/pcix/pci/ppbridge.c +++ b/reactos/drivers/bus/pcix/pci/ppbridge.c @@ -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) || diff --git a/reactos/drivers/bus/pcix/power.c b/reactos/drivers/bus/pcix/power.c index efc29af0274..323bd9553ed 100644 --- a/reactos/drivers/bus/pcix/power.c +++ b/reactos/drivers/bus/pcix/power.c @@ -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, diff --git a/reactos/drivers/bus/pcix/utils.c b/reactos/drivers/bus/pcix/utils.c index d406bbd5417..e335a63de84 100644 --- a/reactos/drivers/bus/pcix/utils.c +++ b/reactos/drivers/bus/pcix/utils.c @@ -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)) { diff --git a/reactos/drivers/filesystems/cdfs/fcb.c b/reactos/drivers/filesystems/cdfs/fcb.c index 3f75b6e7410..b268e836434 100644 --- a/reactos/drivers/filesystems/cdfs/fcb.c +++ b/reactos/drivers/filesystems/cdfs/fcb.c @@ -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 */ diff --git a/reactos/drivers/filesystems/cdfs_new/allocsup.c b/reactos/drivers/filesystems/cdfs_new/allocsup.c index 181d247a412..d3129a3b46f 100755 --- a/reactos/drivers/filesystems/cdfs_new/allocsup.c +++ b/reactos/drivers/filesystems/cdfs_new/allocsup.c @@ -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: // -// Local suupport routine +// Local support routine // ULONG diff --git a/reactos/drivers/filesystems/cdfs_new/cd.h b/reactos/drivers/filesystems/cdfs_new/cd.h index 69dc11d5227..ef41b589681 100755 --- a/reactos/drivers/filesystems/cdfs_new/cd.h +++ b/reactos/drivers/filesystems/cdfs_new/cd.h @@ -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 diff --git a/reactos/drivers/filesystems/cdfs_new/cddata.h b/reactos/drivers/filesystems/cdfs_new/cddata.h index 0577a4ca302..a03fc36f340 100755 --- a/reactos/drivers/filesystems/cdfs_new/cddata.h +++ b/reactos/drivers/filesystems/cdfs_new/cddata.h @@ -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 // diff --git a/reactos/drivers/filesystems/cdfs_new/cdstruc.h b/reactos/drivers/filesystems/cdfs_new/cdstruc.h index d3ffcfd9d40..e120ee27d0f 100755 --- a/reactos/drivers/filesystems/cdfs_new/cdstruc.h +++ b/reactos/drivers/filesystems/cdfs_new/cdstruc.h @@ -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; // -// 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; // // Following structure is used to smooth out the differences in the HSG, ISO -// and Joliett directory entries. +// and Joliet directory entries. // typedef struct _DIRENT { diff --git a/reactos/drivers/filesystems/cdfs_new/close.c b/reactos/drivers/filesystems/cdfs_new/close.c index 913c0fd9487..9090c6e2c8b 100755 --- a/reactos/drivers/filesystems/cdfs_new/close.c +++ b/reactos/drivers/filesystems/cdfs_new/close.c @@ -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. // diff --git a/reactos/drivers/filesystems/cdfs_new/deviosup.c b/reactos/drivers/filesystems/cdfs_new/deviosup.c index a8e2fb432cb..50bafd39360 100755 --- a/reactos/drivers/filesystems/cdfs_new/deviosup.c +++ b/reactos/drivers/filesystems/cdfs_new/deviosup.c @@ -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. // diff --git a/reactos/drivers/filesystems/cdfs_new/dirctrl.c b/reactos/drivers/filesystems/cdfs_new/dirctrl.c index 53e9e31a7b4..3964904a5fc 100755 --- a/reactos/drivers/filesystems/cdfs_new/dirctrl.c +++ b/reactos/drivers/filesystems/cdfs_new/dirctrl.c @@ -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) { diff --git a/reactos/drivers/filesystems/cdfs_new/dirsup.c b/reactos/drivers/filesystems/cdfs_new/dirsup.c index 6edfc1b8fad..6e02c2e9439 100755 --- a/reactos/drivers/filesystems/cdfs_new/dirsup.c +++ b/reactos/drivers/filesystems/cdfs_new/dirsup.c @@ -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 diff --git a/reactos/drivers/filesystems/cdfs_new/fsctrl.c b/reactos/drivers/filesystems/cdfs_new/fsctrl.c index f2a9db1dfa1..7a0bdbd6740 100755 --- a/reactos/drivers/filesystems/cdfs_new/fsctrl.c +++ b/reactos/drivers/filesystems/cdfs_new/fsctrl.c @@ -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. // diff --git a/reactos/drivers/filesystems/cdfs_new/namesup.c b/reactos/drivers/filesystems/cdfs_new/namesup.c index 9d687ddfda5..8cdfb12d415 100755 --- a/reactos/drivers/filesystems/cdfs_new/namesup.c +++ b/reactos/drivers/filesystems/cdfs_new/namesup.c @@ -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 ); diff --git a/reactos/drivers/filesystems/cdfs_new/pathsup.c b/reactos/drivers/filesystems/cdfs_new/pathsup.c index f9484d25d00..607a10502b5 100755 --- a/reactos/drivers/filesystems/cdfs_new/pathsup.c +++ b/reactos/drivers/filesystems/cdfs_new/pathsup.c @@ -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 diff --git a/reactos/drivers/filesystems/cdfs_new/pnp.c b/reactos/drivers/filesystems/cdfs_new/pnp.c index 48f8dc4e1f7..1447536d740 100755 --- a/reactos/drivers/filesystems/cdfs_new/pnp.c +++ b/reactos/drivers/filesystems/cdfs_new/pnp.c @@ -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. diff --git a/reactos/drivers/filesystems/cdfs_new/resrcsup.c b/reactos/drivers/filesystems/cdfs_new/resrcsup.c index abfecdcad06..b062c1b7c65 100755 --- a/reactos/drivers/filesystems/cdfs_new/resrcsup.c +++ b/reactos/drivers/filesystems/cdfs_new/resrcsup.c @@ -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. // diff --git a/reactos/drivers/filesystems/cdfs_new/strucsup.c b/reactos/drivers/filesystems/cdfs_new/strucsup.c index 0ab42dc804a..be42daf6cfe 100755 --- a/reactos/drivers/filesystems/cdfs_new/strucsup.c +++ b/reactos/drivers/filesystems/cdfs_new/strucsup.c @@ -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: diff --git a/reactos/drivers/filesystems/cdfs_new/verfysup.c b/reactos/drivers/filesystems/cdfs_new/verfysup.c index 612c867248f..dae9c011477 100755 --- a/reactos/drivers/filesystems/cdfs_new/verfysup.c +++ b/reactos/drivers/filesystems/cdfs_new/verfysup.c @@ -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)) { diff --git a/reactos/drivers/filesystems/cdfs_new/volinfo.c b/reactos/drivers/filesystems/cdfs_new/volinfo.c index e592f98123b..2abce7f7399 100755 --- a/reactos/drivers/filesystems/cdfs_new/volinfo.c +++ b/reactos/drivers/filesystems/cdfs_new/volinfo.c @@ -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: diff --git a/reactos/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff b/reactos/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff index 49e7a3a7119..23e19488d21 100644 --- a/reactos/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff +++ b/reactos/drivers/filesystems/cdfs_new/wdk_wnet_to_ros.diff @@ -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, + 0, +- *IoFileObjectType, ++ IoFileObjectType, /* ReactOS Change: GCC/LD Incompatibility with exported kernel data */ + KernelMode, +- &FileToMarkBad, ++ (PVOID*)&FileToMarkBad, /* ReactOS Change: GCC "passing argument 5 of 'ObReferenceObjectByHandle' from incompatible pointer type" */ NULL ); if (!NT_SUCCESS(Status)) { diff --git a/reactos/drivers/filesystems/cdfs_new/workque.c b/reactos/drivers/filesystems/cdfs_new/workque.c index 8abc28d8bd1..83db3a49c56 100755 --- a/reactos/drivers/filesystems/cdfs_new/workque.c +++ b/reactos/drivers/filesystems/cdfs_new/workque.c @@ -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: diff --git a/reactos/drivers/filesystems/fastfat/create.c b/reactos/drivers/filesystems/fastfat/create.c index 8a217894c6f..abc361d72c1 100644 --- a/reactos/drivers/filesystems/fastfat/create.c +++ b/reactos/drivers/filesystems/fastfat/create.c @@ -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; diff --git a/reactos/drivers/filesystems/fastfat/direntry.c b/reactos/drivers/filesystems/fastfat/direntry.c index d35f53ccf36..28effc13b72 100644 --- a/reactos/drivers/filesystems/fastfat/direntry.c +++ b/reactos/drivers/filesystems/fastfat/direntry.c @@ -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)) diff --git a/reactos/drivers/filesystems/fastfat/dirwr.c b/reactos/drivers/filesystems/fastfat/dirwr.c index 28d4299fc88..f032268e50a 100644 --- a/reactos/drivers/filesystems/fastfat/dirwr.c +++ b/reactos/drivers/filesystems/fastfat/dirwr.c @@ -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( diff --git a/reactos/drivers/filesystems/fastfat/fsctl.c b/reactos/drivers/filesystems/fastfat/fsctl.c index 1d44b259130..9e019b739b9 100644 --- a/reactos/drivers/filesystems/fastfat/fsctl.c +++ b/reactos/drivers/filesystems/fastfat/fsctl.c @@ -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. */ diff --git a/reactos/drivers/filesystems/fastfat/vfat.h b/reactos/drivers/filesystems/fastfat/vfat.h index f1490659cbd..fd26502f3d1 100644 --- a/reactos/drivers/filesystems/fastfat/vfat.h +++ b/reactos/drivers/filesystems/fastfat/vfat.h @@ -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. */ diff --git a/reactos/drivers/filesystems/fs_rec/fs_rec.c b/reactos/drivers/filesystems/fs_rec/fs_rec.c index f096087d7cb..3c01eda34f4 100644 --- a/reactos/drivers/filesystems/fs_rec/fs_rec.c +++ b/reactos/drivers/filesystems/fs_rec/fs_rec.c @@ -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) diff --git a/reactos/drivers/filesystems/fs_rec/reiserfs.h b/reactos/drivers/filesystems/fs_rec/reiserfs.h index 646b9e642a9..a2c9eed7409 100644 --- a/reactos/drivers/filesystems/fs_rec/reiserfs.h +++ b/reactos/drivers/filesystems/fs_rec/reiserfs.h @@ -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). diff --git a/reactos/drivers/filesystems/mup/mup.c b/reactos/drivers/filesystems/mup/mup.c index 4531786316a..89c595b7c0e 100644 --- a/reactos/drivers/filesystems/mup/mup.c +++ b/reactos/drivers/filesystems/mup/mup.c @@ -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. diff --git a/reactos/drivers/filesystems/ntfs/create.c b/reactos/drivers/filesystems/ntfs/create.c index c0cb43eebcd..4a4a6a6a8df 100644 --- a/reactos/drivers/filesystems/ntfs/create.c +++ b/reactos/drivers/filesystems/ntfs/create.c @@ -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); diff --git a/reactos/drivers/filesystems/ntfs/fcb.c b/reactos/drivers/filesystems/ntfs/fcb.c index e3ac61fa8e4..e88944c3347 100644 --- a/reactos/drivers/filesystems/ntfs/fcb.c +++ b/reactos/drivers/filesystems/ntfs/fcb.c @@ -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 */ diff --git a/reactos/drivers/filesystems/ntfs/ntfs.h b/reactos/drivers/filesystems/ntfs/ntfs.h index be7e6ed4b73..9e987c923f7 100644 --- a/reactos/drivers/filesystems/ntfs/ntfs.h +++ b/reactos/drivers/filesystems/ntfs/ntfs.h @@ -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; diff --git a/reactos/drivers/filters/fltmgr/Interface.c b/reactos/drivers/filters/fltmgr/Interface.c index c32578576f9..7854000b8b7 100644 --- a/reactos/drivers/filters/fltmgr/Interface.c +++ b/reactos/drivers/filters/fltmgr/Interface.c @@ -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; diff --git a/reactos/drivers/filters/fltmgr/fltmgr.h b/reactos/drivers/filters/fltmgr/fltmgr.h index cdda2376c19..d2358168ba4 100644 --- a/reactos/drivers/filters/fltmgr/fltmgr.h +++ b/reactos/drivers/filters/fltmgr/fltmgr.h @@ -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 diff --git a/reactos/drivers/filters/mountmgr/database.c b/reactos/drivers/filters/mountmgr/database.c index 9053420bf30..d99f0ece808 100644 --- a/reactos/drivers/filters/mountmgr/database.c +++ b/reactos/drivers/filters/mountmgr/database.c @@ -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); diff --git a/reactos/drivers/filters/mountmgr/device.c b/reactos/drivers/filters/mountmgr/device.c index 8e91493b01f..08b386daedb 100644 --- a/reactos/drivers/filters/mountmgr/device.c +++ b/reactos/drivers/filters/mountmgr/device.c @@ -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) diff --git a/reactos/drivers/filters/mountmgr/mountmgr.c b/reactos/drivers/filters/mountmgr/mountmgr.c index 0b7e336c6e5..54487a4cb32 100644 --- a/reactos/drivers/filters/mountmgr/mountmgr.c +++ b/reactos/drivers/filters/mountmgr/mountmgr.c @@ -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); } diff --git a/reactos/drivers/filters/mountmgr/notify.c b/reactos/drivers/filters/mountmgr/notify.c index 197dc4653e5..8b7c676da2a 100644 --- a/reactos/drivers/filters/mountmgr/notify.c +++ b/reactos/drivers/filters/mountmgr/notify.c @@ -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); diff --git a/reactos/drivers/filters/mountmgr/symlink.c b/reactos/drivers/filters/mountmgr/symlink.c index 3fc954dfdbe..061e6717e77 100644 --- a/reactos/drivers/filters/mountmgr/symlink.c +++ b/reactos/drivers/filters/mountmgr/symlink.c @@ -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) diff --git a/reactos/drivers/hid/hidclass/fdo.c b/reactos/drivers/hid/hidclass/fdo.c index 3b1ccbd1930..8ea65903b46 100644 --- a/reactos/drivers/hid/hidclass/fdo.c +++ b/reactos/drivers/hid/hidclass/fdo.c @@ -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) diff --git a/reactos/drivers/input/i8042prt/keyboard.c b/reactos/drivers/input/i8042prt/keyboard.c index b86c7d75d8a..e007d289b87 100644 --- a/reactos/drivers/input/i8042prt/keyboard.c +++ b/reactos/drivers/input/i8042prt/keyboard.c @@ -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, diff --git a/reactos/drivers/input/i8042prt/misc.c b/reactos/drivers/input/i8042prt/misc.c index 3adb2d48782..fd0a0d0e2a1 100644 --- a/reactos/drivers/input/i8042prt/misc.c +++ b/reactos/drivers/input/i8042prt/misc.c @@ -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) */ diff --git a/reactos/drivers/input/kbdclass/kbdclass.c b/reactos/drivers/input/kbdclass/kbdclass.c index d4eceda9019..c18b0c72a5e 100644 --- a/reactos/drivers/input/kbdclass/kbdclass.c +++ b/reactos/drivers/input/kbdclass/kbdclass.c @@ -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, diff --git a/reactos/drivers/input/kbdclass/misc.c b/reactos/drivers/input/kbdclass/misc.c index ce0db805471..88e99e4b262 100644 --- a/reactos/drivers/input/kbdclass/misc.c +++ b/reactos/drivers/input/kbdclass/misc.c @@ -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) */ diff --git a/reactos/drivers/input/mouclass/misc.c b/reactos/drivers/input/mouclass/misc.c index 7d88221e706..93552d39cf8 100644 --- a/reactos/drivers/input/mouclass/misc.c +++ b/reactos/drivers/input/mouclass/misc.c @@ -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) */ diff --git a/reactos/drivers/input/mouclass/mouclass.c b/reactos/drivers/input/mouclass/mouclass.c index 7cbac1ed985..8628c582b2e 100644 --- a/reactos/drivers/input/mouclass/mouclass.c +++ b/reactos/drivers/input/mouclass/mouclass.c @@ -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, diff --git a/reactos/drivers/input/sermouse/misc.c b/reactos/drivers/input/sermouse/misc.c index 0465e83988b..9b8e74dbcec 100644 --- a/reactos/drivers/input/sermouse/misc.c +++ b/reactos/drivers/input/sermouse/misc.c @@ -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) */ diff --git a/reactos/drivers/input/sermouse/sermouse.txt b/reactos/drivers/input/sermouse/sermouse.txt index 1de8de7f8fd..38d1bd520a5 100644 --- a/reactos/drivers/input/sermouse/sermouse.txt +++ b/reactos/drivers/input/sermouse/sermouse.txt @@ -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. diff --git a/reactos/drivers/ksfilter/ks/api.c b/reactos/drivers/ksfilter/ks/api.c index 575a5a4bc73..32255373a59 100644 --- a/reactos/drivers/ksfilter/ks/api.c +++ b/reactos/drivers/ksfilter/ks/api.c @@ -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); } diff --git a/reactos/drivers/ksfilter/ks/clocks.c b/reactos/drivers/ksfilter/ks/clocks.c index 7b397a6a290..370c3e4507d 100644 --- a/reactos/drivers/ksfilter/ks/clocks.c +++ b/reactos/drivers/ksfilter/ks/clocks.c @@ -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; diff --git a/reactos/drivers/ksfilter/ks/filter.c b/reactos/drivers/ksfilter/ks/filter.c index fba093e1658..098a221dddc 100644 --- a/reactos/drivers/ksfilter/ks/filter.c +++ b/reactos/drivers/ksfilter/ks/filter.c @@ -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, diff --git a/reactos/drivers/ksfilter/ks/irp.c b/reactos/drivers/ksfilter/ks/irp.c index fe66ac42ab4..46dddf40175 100644 --- a/reactos/drivers/ksfilter/ks/irp.c +++ b/reactos/drivers/ksfilter/ks/irp.c @@ -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; } } diff --git a/reactos/drivers/ksfilter/ks/pin.c b/reactos/drivers/ksfilter/ks/pin.c index 258e7ea96de..5bf3274c02e 100644 --- a/reactos/drivers/ksfilter/ks/pin.c +++ b/reactos/drivers/ksfilter/ks/pin.c @@ -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; diff --git a/reactos/drivers/ksfilter/ks/worker.c b/reactos/drivers/ksfilter/ks/worker.c index 276d93207be..1fd84efcdb6 100644 --- a/reactos/drivers/ksfilter/ks/worker.c +++ b/reactos/drivers/ksfilter/ks/worker.c @@ -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; diff --git a/reactos/drivers/multimedia/audio/sound/mixer.h b/reactos/drivers/multimedia/audio/sound/mixer.h index 564ae35587c..496a3c4c65a 100644 --- a/reactos/drivers/multimedia/audio/sound/mixer.h +++ b/reactos/drivers/multimedia/audio/sound/mixer.h @@ -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); diff --git a/reactos/drivers/multimedia/audio/sound/wave.c b/reactos/drivers/multimedia/audio/sound/wave.c index 56b6c67bf37..67b7c3b5c1b 100644 --- a/reactos/drivers/multimedia/audio/sound/wave.c +++ b/reactos/drivers/multimedia/audio/sound/wave.c @@ -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 */ diff --git a/reactos/drivers/network/afd/afd/read.c b/reactos/drivers/network/afd/afd/read.c index 3f22704d91c..fff6797e93d 100644 --- a/reactos/drivers/network/afd/afd/read.c +++ b/reactos/drivers/network/afd/afd/read.c @@ -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; diff --git a/reactos/drivers/network/afd/afd/write.c b/reactos/drivers/network/afd/afd/write.c index 27f9150ac1e..e1c1fe2a55a 100644 --- a/reactos/drivers/network/afd/afd/write.c +++ b/reactos/drivers/network/afd/afd/write.c @@ -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 diff --git a/reactos/drivers/network/dd/ne2000/include/ne2000.h b/reactos/drivers/network/dd/ne2000/include/ne2000.h index d3b900ea195..8a7b7dc8f62 100644 --- a/reactos/drivers/network/dd/ne2000/include/ne2000.h +++ b/reactos/drivers/network/dd/ne2000/include/ne2000.h @@ -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 */ diff --git a/reactos/drivers/network/dd/ne2000/ne2000/main.c b/reactos/drivers/network/dd/ne2000/ne2000/main.c index b93200db774..5f707e56c26 100644 --- a/reactos/drivers/network/dd/ne2000/ne2000/main.c +++ b/reactos/drivers/network/dd/ne2000/ne2000/main.c @@ -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; diff --git a/reactos/drivers/network/dd/pcnet/pcnet.c b/reactos/drivers/network/dd/pcnet/pcnet.c index 4d4921c0821..26a65270367 100644 --- a/reactos/drivers/network/dd/pcnet/pcnet.c +++ b/reactos/drivers/network/dd/pcnet/pcnet.c @@ -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: diff --git a/reactos/drivers/network/dd/pcnet/pcnet.h b/reactos/drivers/network/dd/pcnet/pcnet.h index efa7d96640b..5389c3ee969 100644 --- a/reactos/drivers/network/dd/pcnet/pcnet.h +++ b/reactos/drivers/network/dd/pcnet/pcnet.h @@ -41,7 +41,7 @@ typedef struct _ADAPTER_STATS ULONG XmtLossesOfCarrier; ULONG XmtCollisions; ULONG XmtLateCollisions; - ULONG XmtExcessiveDefferals; + ULONG XmtExcessiveDeferrals; ULONG XmtBufferUnderflows; ULONG XmtBufferErrors; ULONG XmtOneRetry; diff --git a/reactos/drivers/network/dd/pcnet/pcnethw.h b/reactos/drivers/network/dd/pcnet/pcnethw.h index be79003834c..fc6352f868f 100644 --- a/reactos/drivers/network/dd/pcnet/pcnethw.h +++ b/reactos/drivers/network/dd/pcnet/pcnethw.h @@ -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 */ diff --git a/reactos/drivers/network/dd/pcnet/requests.c b/reactos/drivers/network/dd/pcnet/requests.c index ced553ad864..86092e9603f 100644 --- a/reactos/drivers/network/dd/pcnet/requests.c +++ b/reactos/drivers/network/dd/pcnet/requests.c @@ -1,7 +1,7 @@ /* * ReactOS AMD PCNet Driver * - * Copyright (C) 2000 Casper Hornstroup + * Copyright (C) 2000 Casper Hornstrup * Copyright (C) 2003 Vizzini * Copyright (C) 2004 Filip Navara * @@ -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; diff --git a/reactos/drivers/network/dd/rtl8139/rtlhw.h b/reactos/drivers/network/dd/rtl8139/rtlhw.h index 622e72e12d2..b24979364f8 100644 --- a/reactos/drivers/network/dd/rtl8139/rtlhw.h +++ b/reactos/drivers/network/dd/rtl8139/rtlhw.h @@ -141,7 +141,7 @@ //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 diff --git a/reactos/drivers/network/lan/lan/lan.c b/reactos/drivers/network/lan/lan/lan.c index 39494eded46..deaf5763600 100644 --- a/reactos/drivers/network/lan/lan/lan.c +++ b/reactos/drivers/network/lan/lan/lan.c @@ -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 diff --git a/reactos/drivers/network/lan/lan/routines.c b/reactos/drivers/network/lan/lan/routines.c index 4d5acf8318f..118ee8caf13 100644 --- a/reactos/drivers/network/lan/lan/routines.c +++ b/reactos/drivers/network/lan/lan/routines.c @@ -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); } diff --git a/reactos/drivers/network/ndis/ndis/buffer.c b/reactos/drivers/network/ndis/ndis/buffer.c index 318c9d81df2..4c00fa96d6f 100644 --- a/reactos/drivers/network/ndis/ndis/buffer.c +++ b/reactos/drivers/network/ndis/ndis/buffer.c @@ -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) diff --git a/reactos/drivers/network/ndis/ndis/config.c b/reactos/drivers/network/ndis/ndis/config.c index 2a0f8dfb532..ad36292c71f 100644 --- a/reactos/drivers/network/ndis/ndis/config.c +++ b/reactos/drivers/network/ndis/ndis/config.c @@ -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. diff --git a/reactos/drivers/network/ndis/ndis/efilter.c b/reactos/drivers/network/ndis/ndis/efilter.c index bbde5bdc7be..1eb857c02cf 100644 --- a/reactos/drivers/network/ndis/ndis/efilter.c +++ b/reactos/drivers/network/ndis/ndis/efilter.c @@ -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: diff --git a/reactos/drivers/network/ndis/ndis/io.c b/reactos/drivers/network/ndis/ndis/io.c index 4a57149f066..faee64ae309 100644 --- a/reactos/drivers/network/ndis/ndis/io.c +++ b/reactos/drivers/network/ndis/ndis/io.c @@ -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 */ diff --git a/reactos/drivers/network/ndis/ndis/main.c b/reactos/drivers/network/ndis/ndis/main.c index 79541745ffa..09bb86c6742 100644 --- a/reactos/drivers/network/ndis/ndis/main.c +++ b/reactos/drivers/network/ndis/ndis/main.c @@ -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 diff --git a/reactos/drivers/network/ndis/ndis/miniport.c b/reactos/drivers/network/ndis/ndis/miniport.c index b967b27e25a..5cc92013b14 100644 --- a/reactos/drivers/network/ndis/ndis/miniport.c +++ b/reactos/drivers/network/ndis/ndis/miniport.c @@ -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. */ diff --git a/reactos/drivers/network/ndis/ndis/protocol.c b/reactos/drivers/network/ndis/ndis/protocol.c index b68f7eaad00..c32bfd45d38 100644 --- a/reactos/drivers/network/ndis/ndis/protocol.c +++ b/reactos/drivers/network/ndis/ndis/protocol.c @@ -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 diff --git a/reactos/drivers/network/ndis/ndis/time.c b/reactos/drivers/network/ndis/ndis/time.c index c27a511c099..8337fad478d 100644 --- a/reactos/drivers/network/ndis/ndis/time.c +++ b/reactos/drivers/network/ndis/ndis/time.c @@ -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 */ { diff --git a/reactos/drivers/network/tcpip/datalink/lan.c b/reactos/drivers/network/tcpip/datalink/lan.c index 4cbbec924ce..01b36a08cc5 100644 --- a/reactos/drivers/network/tcpip/datalink/lan.c +++ b/reactos/drivers/network/tcpip/datalink/lan.c @@ -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 diff --git a/reactos/drivers/network/tcpip/include/linux.h b/reactos/drivers/network/tcpip/include/linux.h index 9c4ad1c82ff..7075e97b357 100644 --- a/reactos/drivers/network/tcpip/include/linux.h +++ b/reactos/drivers/network/tcpip/include/linux.h @@ -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 { diff --git a/reactos/drivers/network/tcpip/include/tcpcore.h b/reactos/drivers/network/tcpip/include/tcpcore.h index 5034e859fa0..0611681226b 100644 --- a/reactos/drivers/network/tcpip/include/tcpcore.h +++ b/reactos/drivers/network/tcpip/include/tcpcore.h @@ -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 diff --git a/reactos/drivers/network/tcpip/include/tcpdef.h b/reactos/drivers/network/tcpip/include/tcpdef.h index fa77e9f0413..18c5da3d72b 100644 --- a/reactos/drivers/network/tcpip/include/tcpdef.h +++ b/reactos/drivers/network/tcpip/include/tcpdef.h @@ -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 */ diff --git a/reactos/drivers/network/tcpip/include/ticonsts.h b/reactos/drivers/network/tcpip/include/ticonsts.h index ede93c91974..6d86b6787d5 100644 --- a/reactos/drivers/network/tcpip/include/ticonsts.h +++ b/reactos/drivers/network/tcpip/include/ticonsts.h @@ -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_ */ diff --git a/reactos/drivers/network/tcpip/include/titypes.h b/reactos/drivers/network/tcpip/include/titypes.h index 70ba4ea0d9c..8d0f4282604 100644 --- a/reactos/drivers/network/tcpip/include/titypes.h +++ b/reactos/drivers/network/tcpip/include/titypes.h @@ -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 */ diff --git a/reactos/drivers/network/tcpip/tcpip/buffer.c b/reactos/drivers/network/tcpip/tcpip/buffer.c index d23da2c9d32..4fed0557362 100644 --- a/reactos/drivers/network/tcpip/tcpip/buffer.c +++ b/reactos/drivers/network/tcpip/tcpip/buffer.c @@ -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); } diff --git a/reactos/drivers/network/tcpip/tcpip/dispatch.c b/reactos/drivers/network/tcpip/tcpip/dispatch.c index 9315e1a68e8..bb3625c731c 100644 --- a/reactos/drivers/network/tcpip/tcpip/dispatch.c +++ b/reactos/drivers/network/tcpip/tcpip/dispatch.c @@ -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; } diff --git a/reactos/drivers/network/tcpip/tcpip/mockbuffer.c b/reactos/drivers/network/tcpip/tcpip/mockbuffer.c index f6f7dbf7d47..765df570d98 100644 --- a/reactos/drivers/network/tcpip/tcpip/mockbuffer.c +++ b/reactos/drivers/network/tcpip/tcpip/mockbuffer.c @@ -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); } diff --git a/reactos/drivers/network/tcpip/tests/tests/ipreceive.c b/reactos/drivers/network/tcpip/tests/tests/ipreceive.c index 326d6dde136..14051b5e378 100644 --- a/reactos/drivers/network/tcpip/tests/tests/ipreceive.c +++ b/reactos/drivers/network/tcpip/tests/tests/ipreceive.c @@ -29,4 +29,4 @@ static void RunTest() { _AssertEqualValue(STATUS_SUCCESS, Status); } -_Dispatcher(IpreceiveTest, "IPReceive"); +_Dispatcher(IPReceiveTest, "IPReceive"); diff --git a/reactos/drivers/network/tdi/tdi/obsolete.c b/reactos/drivers/network/tdi/tdi/obsolete.c index afc5a3f397f..d302db460c4 100644 --- a/reactos/drivers/network/tdi/tdi/obsolete.c +++ b/reactos/drivers/network/tdi/tdi/obsolete.c @@ -9,7 +9,7 @@ TdiMapBuffer ( IN PMDL MdlChain ) { - /* This function is absolete */ + /* This function is obsolete */ } diff --git a/reactos/drivers/parallel/parallel/parallel.h b/reactos/drivers/parallel/parallel/parallel.h index bf09f1ac4e9..a424350b736 100644 --- a/reactos/drivers/parallel/parallel/parallel.h +++ b/reactos/drivers/parallel/parallel/parallel.h @@ -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. */ diff --git a/reactos/drivers/parallel/parport/fdo.c b/reactos/drivers/parallel/parport/fdo.c index fdcd4b1233b..82590607f48 100644 --- a/reactos/drivers/parallel/parport/fdo.c +++ b/reactos/drivers/parallel/parport/fdo.c @@ -186,7 +186,7 @@ FdoStartDevice(IN PDEVICE_OBJECT DeviceObject, break; default: - DPRINT1("Other ressource: \n"); + DPRINT1("Other resource: \n"); break; } } diff --git a/reactos/drivers/sac/driver/concmd.c b/reactos/drivers/sac/driver/concmd.c index 4ec8725e5b0..1428a91ec34 100644 --- a/reactos/drivers/sac/driver/concmd.c +++ b/reactos/drivers/sac/driver/concmd.c @@ -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 diff --git a/reactos/drivers/sac/driver/conmgr.c b/reactos/drivers/sac/driver/conmgr.c index ffc4b9de658..86b445eeb61 100644 --- a/reactos/drivers/sac/driver/conmgr.c +++ b/reactos/drivers/sac/driver/conmgr.c @@ -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)) diff --git a/reactos/drivers/sac/driver/dispatch.c b/reactos/drivers/sac/driver/dispatch.c index d1cda63f7ce..60944186e66 100644 --- a/reactos/drivers/sac/driver/dispatch.c +++ b/reactos/drivers/sac/driver/dispatch.c @@ -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) { diff --git a/reactos/drivers/sac/driver/memory.c b/reactos/drivers/sac/driver/memory.c index 4def83b812f..1d3afa00ffa 100644 --- a/reactos/drivers/sac/driver/memory.c +++ b/reactos/drivers/sac/driver/memory.c @@ -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); diff --git a/reactos/drivers/sac/driver/sacdrv.h b/reactos/drivers/sac/driver/sacdrv.h index c01c8d15a33..602afd05ed6 100644 --- a/reactos/drivers/sac/driver/sacdrv.h +++ b/reactos/drivers/sac/driver/sacdrv.h @@ -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, diff --git a/reactos/drivers/sac/driver/util.c b/reactos/drivers/sac/driver/util.c index 541fa9926e5..791bb321e94 100644 --- a/reactos/drivers/sac/driver/util.c +++ b/reactos/drivers/sac/driver/util.c @@ -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; } diff --git a/reactos/drivers/sac/driver/vtutf8chan.c b/reactos/drivers/sac/driver/vtutf8chan.c index ce45af22246..27cd3396f98 100644 --- a/reactos/drivers/sac/driver/vtutf8chan.c +++ b/reactos/drivers/sac/driver/vtutf8chan.c @@ -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, diff --git a/reactos/drivers/serial/serenum/misc.c b/reactos/drivers/serial/serenum/misc.c index 9758f231e04..8541da196ee 100644 --- a/reactos/drivers/serial/serenum/misc.c +++ b/reactos/drivers/serial/serenum/misc.c @@ -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) */ diff --git a/reactos/drivers/serial/serial/misc.c b/reactos/drivers/serial/serial/misc.c index b684c36ce66..36df0a14e8e 100644 --- a/reactos/drivers/serial/serial/misc.c +++ b/reactos/drivers/serial/serial/misc.c @@ -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) */ diff --git a/reactos/drivers/storage/class/cdrom/cdrom.c b/reactos/drivers/storage/class/cdrom/cdrom.c index 1da677b5547..69ddd19f9dc 100644 --- a/reactos/drivers/storage/class/cdrom/cdrom.c +++ b/reactos/drivers/storage/class/cdrom/cdrom.c @@ -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; diff --git a/reactos/drivers/storage/class/cdrom_new/cdrom.c b/reactos/drivers/storage/class/cdrom_new/cdrom.c index 10404ee0071..cbf3efb612a 100644 --- a/reactos/drivers/storage/class/cdrom_new/cdrom.c +++ b/reactos/drivers/storage/class/cdrom_new/cdrom.c @@ -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) && diff --git a/reactos/drivers/storage/class/cdrom_new/cdrom.h b/reactos/drivers/storage/class/cdrom_new/cdrom.h index 9bd9c2ef611..83db03c786c 100644 --- a/reactos/drivers/storage/class/cdrom_new/cdrom.h +++ b/reactos/drivers/storage/class/cdrom_new/cdrom.h @@ -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; diff --git a/reactos/drivers/storage/class/cdrom_new/cdrom.inf b/reactos/drivers/storage/class/cdrom_new/cdrom.inf index 47cc948c9d0..249c54d1b28 100644 --- a/reactos/drivers/storage/class/cdrom_new/cdrom.inf +++ b/reactos/drivers/storage/class/cdrom_new/cdrom.inf @@ -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 diff --git a/reactos/drivers/storage/class/cdrom_new/data.c b/reactos/drivers/storage/class/cdrom_new/data.c index cecd8ea503c..0c6d25dca65 100644 --- a/reactos/drivers/storage/class/cdrom_new/data.c +++ b/reactos/drivers/storage/class/cdrom_new/data.c @@ -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 }, diff --git a/reactos/drivers/storage/class/cdrom_new/mmc.c b/reactos/drivers/storage/class/cdrom_new/mmc.c index f3710879aef..7dcc3614a1d 100644 --- a/reactos/drivers/storage/class/cdrom_new/mmc.c +++ b/reactos/drivers/storage/class/cdrom_new/mmc.c @@ -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); diff --git a/reactos/drivers/storage/class/class2/class2.c b/reactos/drivers/storage/class/class2/class2.c index 66830740145..0a4c3d7ad55 100644 --- a/reactos/drivers/storage/class/class2/class2.c +++ b/reactos/drivers/storage/class/class2/class2.c @@ -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. // diff --git a/reactos/drivers/storage/class/disk/disk.c b/reactos/drivers/storage/class/disk/disk.c index 0563702fd40..a4eda123ab3 100644 --- a/reactos/drivers/storage/class/disk/disk.c +++ b/reactos/drivers/storage/class/disk/disk.c @@ -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: diff --git a/reactos/drivers/storage/class/disk_new/disk.c b/reactos/drivers/storage/class/disk_new/disk.c index 01c0a543b24..1e30a47e3f2 100644 --- a/reactos/drivers/storage/class/disk_new/disk.c +++ b/reactos/drivers/storage/class/disk_new/disk.c @@ -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. // diff --git a/reactos/drivers/storage/class/disk_new/disk.h b/reactos/drivers/storage/class/disk_new/disk.h index f47d41bb200..da24ffe3651 100644 --- a/reactos/drivers/storage/class/disk_new/disk.h +++ b/reactos/drivers/storage/class/disk_new/disk.h @@ -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. // diff --git a/reactos/drivers/storage/class/disk_new/diskwmi.c b/reactos/drivers/storage/class/disk_new/diskwmi.c index 28ec458c992..fbe334d8f6d 100644 --- a/reactos/drivers/storage/class/disk_new/diskwmi.c +++ b/reactos/drivers/storage/class/disk_new/diskwmi.c @@ -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 diff --git a/reactos/drivers/storage/class/disk_new/geometry.c b/reactos/drivers/storage/class/disk_new/geometry.c index 53df0969e84..ccfd8c08950 100644 --- a/reactos/drivers/storage/class/disk_new/geometry.c +++ b/reactos/drivers/storage/class/disk_new/geometry.c @@ -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. --*/ { diff --git a/reactos/drivers/storage/class/disk_new/part.c b/reactos/drivers/storage/class/disk_new/part.c index db65e106da9..a49597e1250 100644 --- a/reactos/drivers/storage/class/disk_new/part.c +++ b/reactos/drivers/storage/class/disk_new/part.c @@ -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 diff --git a/reactos/drivers/storage/class/disk_new/pnp.c b/reactos/drivers/storage/class/disk_new/pnp.c index 27c0c92e05b..8065feeb292 100644 --- a/reactos/drivers/storage/class/disk_new/pnp.c +++ b/reactos/drivers/storage/class/disk_new/pnp.c @@ -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. // diff --git a/reactos/drivers/storage/classpnp/autorun.c b/reactos/drivers/storage/classpnp/autorun.c index b31042609e1..4716a31634d 100644 --- a/reactos/drivers/storage/classpnp/autorun.c +++ b/reactos/drivers/storage/classpnp/autorun.c @@ -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. diff --git a/reactos/drivers/storage/classpnp/class.c b/reactos/drivers/storage/classpnp/class.c index 1713723a7be..da6603ede97 100644 --- a/reactos/drivers/storage/classpnp/class.c +++ b/reactos/drivers/storage/classpnp/class.c @@ -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. diff --git a/reactos/drivers/storage/classpnp/classp.h b/reactos/drivers/storage/classpnp/classp.h index 59a2949661a..d75882702dc 100644 --- a/reactos/drivers/storage/classpnp/classp.h +++ b/reactos/drivers/storage/classpnp/classp.h @@ -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; diff --git a/reactos/drivers/storage/classpnp/classwmi.c b/reactos/drivers/storage/classpnp/classwmi.c index 890b34768d8..0206e809826 100644 --- a/reactos/drivers/storage/classpnp/classwmi.c +++ b/reactos/drivers/storage/classpnp/classwmi.c @@ -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) || diff --git a/reactos/drivers/storage/classpnp/lock.c b/reactos/drivers/storage/classpnp/lock.c index 3d609006ff7..bae795bf38e 100644 --- a/reactos/drivers/storage/classpnp/lock.c +++ b/reactos/drivers/storage/classpnp/lock.c @@ -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, diff --git a/reactos/drivers/storage/classpnp/obsolete.c b/reactos/drivers/storage/classpnp/obsolete.c index 59ed976bded..498507ae3ff 100644 --- a/reactos/drivers/storage/classpnp/obsolete.c +++ b/reactos/drivers/storage/classpnp/obsolete.c @@ -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. diff --git a/reactos/drivers/storage/classpnp/power.c b/reactos/drivers/storage/classpnp/power.c index 195792f0ae5..085abc386c0 100644 --- a/reactos/drivers/storage/classpnp/power.c +++ b/reactos/drivers/storage/classpnp/power.c @@ -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) { diff --git a/reactos/drivers/storage/classpnp/utils.c b/reactos/drivers/storage/classpnp/utils.c index de4cc049713..b2a90ba0e6f 100644 --- a/reactos/drivers/storage/classpnp/utils.c +++ b/reactos/drivers/storage/classpnp/utils.c @@ -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; diff --git a/reactos/drivers/storage/fdc/fdc/fdc.rc b/reactos/drivers/storage/fdc/fdc/fdc.rc index af4cf04d09c..8b5e4a4e837 100644 --- a/reactos/drivers/storage/fdc/fdc/fdc.rc +++ b/reactos/drivers/storage/fdc/fdc/fdc.rc @@ -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 */ diff --git a/reactos/drivers/storage/fdc/fdc/fdo.c b/reactos/drivers/storage/fdc/fdc/fdo.c index 257d5589527..b1c7125f8e1 100644 --- a/reactos/drivers/storage/fdc/fdc/fdo.c +++ b/reactos/drivers/storage/fdc/fdc/fdo.c @@ -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++; } diff --git a/reactos/drivers/storage/floppy/floppy.c b/reactos/drivers/storage/floppy/floppy.c index 0b65e28e093..d388cf7d37d 100644 --- a/reactos/drivers/storage/floppy/floppy.c +++ b/reactos/drivers/storage/floppy/floppy.c @@ -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)) diff --git a/reactos/drivers/storage/floppy/floppy.rc b/reactos/drivers/storage/floppy/floppy.rc index 27ae6813f46..d23ec119d46 100644 --- a/reactos/drivers/storage/floppy/floppy.rc +++ b/reactos/drivers/storage/floppy/floppy.rc @@ -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) */ diff --git a/reactos/drivers/storage/floppy/hardware.c b/reactos/drivers/storage/floppy/hardware.c index c163bba180b..fb3c78ed308 100644 --- a/reactos/drivers/storage/floppy/hardware.c +++ b/reactos/drivers/storage/floppy/hardware.c @@ -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 diff --git a/reactos/drivers/storage/floppy/hardware.h b/reactos/drivers/storage/floppy/hardware.h index f36ec25ff52..21b1340d9c9 100644 --- a/reactos/drivers/storage/floppy/hardware.h +++ b/reactos/drivers/storage/floppy/hardware.h @@ -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 */ diff --git a/reactos/drivers/storage/floppy/ioctl.c b/reactos/drivers/storage/floppy/ioctl.c index 88b3b39a80a..976e02ef874 100644 --- a/reactos/drivers/storage/floppy/ioctl.c +++ b/reactos/drivers/storage/floppy/ioctl.c @@ -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 diff --git a/reactos/drivers/storage/floppy/readwrite.c b/reactos/drivers/storage/floppy/readwrite.c index d677adeb1f4..aff69ca8d07 100644 --- a/reactos/drivers/storage/floppy/readwrite.c +++ b/reactos/drivers/storage/floppy/readwrite.c @@ -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. diff --git a/reactos/drivers/storage/ide/atapi/atapi.c b/reactos/drivers/storage/ide/atapi/atapi.c index a0b80525bf8..6bad4808055 100644 --- a/reactos/drivers/storage/ide/atapi/atapi.c +++ b/reactos/drivers/storage/ide/atapi/atapi.c @@ -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; diff --git a/reactos/drivers/storage/ide/pciidex/misc.c b/reactos/drivers/storage/ide/pciidex/misc.c index c313dc993a9..9126293ca59 100644 --- a/reactos/drivers/storage/ide/pciidex/misc.c +++ b/reactos/drivers/storage/ide/pciidex/misc.c @@ -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) */ diff --git a/reactos/drivers/storage/inc/ide.h b/reactos/drivers/storage/inc/ide.h index 9c868ca587e..b4912499fe7 100644 --- a/reactos/drivers/storage/inc/ide.h +++ b/reactos/drivers/storage/inc/ide.h @@ -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( diff --git a/reactos/drivers/storage/inc/rbc.h b/reactos/drivers/storage/inc/rbc.h index 5afa8bb1d7a..11f0ae6c2f5 100644 --- a/reactos/drivers/storage/inc/rbc.h +++ b/reactos/drivers/storage/inc/rbc.h @@ -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; diff --git a/reactos/drivers/storage/port/buslogic/BusLogic958.c b/reactos/drivers/storage/port/buslogic/BusLogic958.c index ed4ba615d98..76b6d8b024f 100644 --- a/reactos/drivers/storage/port/buslogic/BusLogic958.c +++ b/reactos/drivers/storage/port/buslogic/BusLogic958.c @@ -24,10 +24,10 @@ // // 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 //_______________________________________________________________________________ { diff --git a/reactos/drivers/storage/port/buslogic/BusLogic958.h b/reactos/drivers/storage/port/buslogic/BusLogic958.h index 9ca15dec94c..603f1943924 100644 --- a/reactos/drivers/storage/port/buslogic/BusLogic958.h +++ b/reactos/drivers/storage/port/buslogic/BusLogic958.h @@ -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. diff --git a/reactos/drivers/storage/port/buslogic/Log.c b/reactos/drivers/storage/port/buslogic/Log.c index 23a8a0254c0..47f138f948c 100644 --- a/reactos/drivers/storage/port/buslogic/Log.c +++ b/reactos/drivers/storage/port/buslogic/Log.c @@ -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') diff --git a/reactos/drivers/storage/port/buslogic/wmi.c b/reactos/drivers/storage/port/buslogic/wmi.c index 6b8ecfa3258..0b1ecc36a17 100644 --- a/reactos/drivers/storage/port/buslogic/wmi.c +++ b/reactos/drivers/storage/port/buslogic/wmi.c @@ -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: diff --git a/reactos/drivers/storage/scsiport/scsiport.c b/reactos/drivers/storage/scsiport/scsiport.c index 020db061936..eaa7068e7d4 100644 --- a/reactos/drivers/storage/scsiport/scsiport.c +++ b/reactos/drivers/storage/scsiport/scsiport.c @@ -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 */ diff --git a/reactos/drivers/usb/usbccgp/descriptor.c b/reactos/drivers/usb/usbccgp/descriptor.c index 5537bf9ec75..44d1b509b7f 100644 --- a/reactos/drivers/usb/usbccgp/descriptor.c +++ b/reactos/drivers/usb/usbccgp/descriptor.c @@ -441,7 +441,7 @@ USBCCGP_SelectInterface( Status = USBCCGP_SyncUrbRequest(DeviceExtension->NextDeviceObject, Urb); // - // did it succeeed + // did it succeed // if (NT_SUCCESS(Status)) { diff --git a/reactos/drivers/usb/usbccgp/fdo.c b/reactos/drivers/usb/usbccgp/fdo.c index 0428f564576..7916e8acf33 100644 --- a/reactos/drivers/usb/usbccgp/fdo.c +++ b/reactos/drivers/usb/usbccgp/fdo.c @@ -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) { diff --git a/reactos/drivers/usb/usbd/usbd.c b/reactos/drivers/usb/usbd/usbd.c index f551ea9c332..f9cb698d723 100644 --- a/reactos/drivers/usb/usbd/usbd.c +++ b/reactos/drivers/usb/usbd/usbd.c @@ -580,7 +580,7 @@ USBD_ParseConfigurationDescriptorEx( if (Found) { - /* the choosen one */ + /* the chosen one */ return InterfaceDescriptor; } diff --git a/reactos/drivers/usb/usbehci/hardware.cpp b/reactos/drivers/usb/usbehci/hardware.cpp index 31c8c16781a..e08ff52f989 100644 --- a/reactos/drivers/usb/usbehci/hardware.cpp +++ b/reactos/drivers/usb/usbehci/hardware.cpp @@ -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 diff --git a/reactos/drivers/usb/usbehci/usb_queue.cpp b/reactos/drivers/usb/usbehci/usb_queue.cpp index 6787bb431d6..48a06d62c2d 100644 --- a/reactos/drivers/usb/usbehci/usb_queue.cpp +++ b/reactos/drivers/usb/usbehci/usb_queue.cpp @@ -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 diff --git a/reactos/drivers/usb/usbehci/usb_request.cpp b/reactos/drivers/usb/usbehci/usb_request.cpp index ce1699ae07c..0091f4afbc6 100644 --- a/reactos/drivers/usb/usbehci/usb_request.cpp +++ b/reactos/drivers/usb/usbehci/usb_request.cpp @@ -391,7 +391,7 @@ CUSBRequest::CompletionCallback( } // - // check if the request was successfull + // check if the request was successful // if (!NT_SUCCESS(NtStatusCode)) { diff --git a/reactos/drivers/usb/usbhub/misc.c b/reactos/drivers/usb/usbhub/misc.c index da9e8e027aa..0800c597cf2 100644 --- a/reactos/drivers/usb/usbhub/misc.c +++ b/reactos/drivers/usb/usbhub/misc.c @@ -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) { diff --git a/reactos/drivers/usb/usbhub/pdo.c b/reactos/drivers/usb/usbhub/pdo.c index 2ba1cdf34b0..6ddc0709f02 100644 --- a/reactos/drivers/usb/usbhub/pdo.c +++ b/reactos/drivers/usb/usbhub/pdo.c @@ -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; } // diff --git a/reactos/drivers/usb/usbohci/hardware.cpp b/reactos/drivers/usb/usbohci/hardware.cpp index 7d7169e5068..7bb27bbfd15 100644 --- a/reactos/drivers/usb/usbohci/hardware.cpp +++ b/reactos/drivers/usb/usbohci/hardware.cpp @@ -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) { diff --git a/reactos/drivers/usb/usbohci/usb_queue.cpp b/reactos/drivers/usb/usbohci/usb_queue.cpp index f757c4beb8f..b8ca38a08b0 100644 --- a/reactos/drivers/usb/usbohci/usb_queue.cpp +++ b/reactos/drivers/usb/usbohci/usb_queue.cpp @@ -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 diff --git a/reactos/drivers/usb/usbohci/usb_request.cpp b/reactos/drivers/usb/usbohci/usb_request.cpp index 5d2359956c0..355edf06f00 100644 --- a/reactos/drivers/usb/usbohci/usb_request.cpp +++ b/reactos/drivers/usb/usbohci/usb_request.cpp @@ -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; diff --git a/reactos/drivers/usb/usbstor/descriptor.c b/reactos/drivers/usb/usbstor/descriptor.c index b80cee5d6fe..e69e8c866d9 100644 --- a/reactos/drivers/usb/usbstor/descriptor.c +++ b/reactos/drivers/usb/usbstor/descriptor.c @@ -458,7 +458,7 @@ USBSTOR_SelectConfigurationAndInterface( Status = USBSTOR_SyncUrbRequest(DeviceExtension->LowerDeviceObject, Urb); // - // did it succeeed + // did it succeed // if (NT_SUCCESS(Status)) { diff --git a/reactos/drivers/usb/usbstor/disk.c b/reactos/drivers/usb/usbstor/disk.c index 5e294a1f2e2..ee5f1eb7c36 100644 --- a/reactos/drivers/usb/usbstor/disk.c +++ b/reactos/drivers/usb/usbstor/disk.c @@ -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++) { diff --git a/reactos/drivers/usb/usbstor/fdo.c b/reactos/drivers/usb/usbstor/fdo.c index ffc783ac7a2..e3707041f58 100644 --- a/reactos/drivers/usb/usbstor/fdo.c +++ b/reactos/drivers/usb/usbstor/fdo.c @@ -179,7 +179,7 @@ USBSTOR_FdoHandleStartDevice( } // - // intialize irp queue + // initialize irp queue // USBSTOR_QueueInitialize(DeviceExtension); diff --git a/reactos/drivers/usb/usbstor/pdo.c b/reactos/drivers/usb/usbstor/pdo.c index c2f0d97bdd6..473b4821c2d 100644 --- a/reactos/drivers/usb/usbstor/pdo.c +++ b/reactos/drivers/usb/usbstor/pdo.c @@ -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) { diff --git a/reactos/drivers/usb/usbstor/usbstor.h b/reactos/drivers/usb/usbstor/usbstor.h index cd7172f2b7a..f477e9a1a04 100644 --- a/reactos/drivers/usb/usbstor/usbstor.h +++ b/reactos/drivers/usb/usbstor/usbstor.h @@ -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) diff --git a/reactos/drivers/usb/usbuhci/hardware.cpp b/reactos/drivers/usb/usbuhci/hardware.cpp index 51358a6e406..3c0099cbada 100644 --- a/reactos/drivers/usb/usbuhci/hardware.cpp +++ b/reactos/drivers/usb/usbuhci/hardware.cpp @@ -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 diff --git a/reactos/drivers/usb/usbuhci/hardware.h b/reactos/drivers/usb/usbuhci/hardware.h index 9f1c13e206e..75f43250665 100644 --- a/reactos/drivers/usb/usbuhci/hardware.h +++ b/reactos/drivers/usb/usbuhci/hardware.h @@ -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 diff --git a/reactos/drivers/usb/usbuhci/interfaces.h b/reactos/drivers/usb/usbuhci/interfaces.h index f4adb57693c..ff6ebe082a1 100644 --- a/reactos/drivers/usb/usbuhci/interfaces.h +++ b/reactos/drivers/usb/usbuhci/interfaces.h @@ -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 diff --git a/reactos/drivers/wdm/audio/backpln/audio_test/audio_test.c b/reactos/drivers/wdm/audio/backpln/audio_test/audio_test.c index c831595f24d..da71a08dc06 100644 --- a/reactos/drivers/wdm/audio/backpln/audio_test/audio_test.c +++ b/reactos/drivers/wdm/audio/backpln/audio_test/audio_test.c @@ -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; diff --git a/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.cpp b/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.cpp index f19989074ed..f299d3c57b4 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/dma_slave.cpp @@ -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; diff --git a/reactos/drivers/wdm/audio/backpln/portcls/miniport_dmus.cpp b/reactos/drivers/wdm/audio/backpln/portcls/miniport_dmus.cpp index d8f6772e72e..e13e0c48be8 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/miniport_dmus.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/miniport_dmus.cpp @@ -1332,7 +1332,7 @@ ProcessResources || (lengthIO == 0) ) { - DPRINT("Unknown ResourceList configuraton"); + DPRINT("Unknown ResourceList configuration"); ntStatus = STATUS_DEVICE_CONFIGURATION_ERROR; } diff --git a/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp b/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp index ab84dc3439d..30dee7faf01 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/pin_wavecyclic.cpp @@ -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 diff --git a/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp b/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp index b493e4de130..578147582bd 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/pin_wavepci.cpp @@ -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 } diff --git a/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp b/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp index c3c5690bf19..6d3d99a8bc1 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/pin_wavert.cpp @@ -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); diff --git a/reactos/drivers/wdm/audio/backpln/portcls/port_dmus.cpp b/reactos/drivers/wdm/audio/backpln/portcls/port_dmus.cpp index a3b3d6d24e2..a71d26a9425 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/port_dmus.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/port_dmus.cpp @@ -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(); diff --git a/reactos/drivers/wdm/audio/backpln/portcls/port_topology.cpp b/reactos/drivers/wdm/audio/backpln/portcls/port_topology.cpp index 6bb76aa4f1e..9b91bf47ebc 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/port_topology.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/port_topology.cpp @@ -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; } diff --git a/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp b/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp index f4da81971ff..f0637661952 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/port_wavepci.cpp @@ -329,7 +329,7 @@ CPortWavePci::Init( m_pPowerNotify = PowerNotify; } - DPRINT("IPortWavePci_Init sucessfully initialized\n"); + DPRINT("IPortWavePci_Init successfully initialized\n"); return STATUS_SUCCESS; } diff --git a/reactos/drivers/wdm/audio/backpln/portcls/port_wavert.cpp b/reactos/drivers/wdm/audio/backpln/portcls/port_wavert.cpp index 71e848262e2..b7866531f55 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/port_wavert.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/port_wavert.cpp @@ -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; } diff --git a/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp b/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp index 28dce3908be..da37874c99e 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/propertyhandler.cpp @@ -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], diff --git a/reactos/drivers/wdm/audio/backpln/portcls/service_group.cpp b/reactos/drivers/wdm/audio/backpln/portcls/service_group.cpp index 422c5aaf4a8..50ebd7335a4 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/service_group.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/service_group.cpp @@ -141,7 +141,7 @@ CServiceGroup::RequestService() } else { - // check curent irql + // check current irql if (KeGetCurrentIrql() > DISPATCH_LEVEL) { //insert dpc to queue diff --git a/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp b/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp index d4249be5cb2..434a8d494b3 100644 --- a/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp +++ b/reactos/drivers/wdm/audio/backpln/portcls/undoc.cpp @@ -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 diff --git a/reactos/drivers/wdm/audio/drivers/CMIDriver/CHANGELOG.txt b/reactos/drivers/wdm/audio/drivers/CMIDriver/CHANGELOG.txt index 1a7c286eb45..ac40e9ca9e4 100644 --- a/reactos/drivers/wdm/audio/drivers/CMIDriver/CHANGELOG.txt +++ b/reactos/drivers/wdm/audio/drivers/CMIDriver/CHANGELOG.txt @@ -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: diff --git a/reactos/drivers/wdm/audio/drm/drmk/stubs.cpp b/reactos/drivers/wdm/audio/drm/drmk/stubs.cpp index be1abc4c62f..93ca605e42e 100644 --- a/reactos/drivers/wdm/audio/drm/drmk/stubs.cpp +++ b/reactos/drivers/wdm/audio/drm/drmk/stubs.cpp @@ -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 diff --git a/reactos/drivers/wdm/audio/hdaudbus/businterface.cpp b/reactos/drivers/wdm/audio/hdaudbus/businterface.cpp index 2af21296f9f..940db612128 100644 --- a/reactos/drivers/wdm/audio/hdaudbus/businterface.cpp +++ b/reactos/drivers/wdm/audio/hdaudbus/businterface.cpp @@ -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; diff --git a/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp b/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp index 4b400238113..20a2fca3509 100644 --- a/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp +++ b/reactos/drivers/wdm/audio/hdaudbus/fdo.cpp @@ -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. diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c index 8e80404dc3d..fcc66819577 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/control.c +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/control.c @@ -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) diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/interface.h b/reactos/drivers/wdm/audio/legacy/wdmaud/interface.h index 025bebba7db..a6877e3dd8c 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/interface.h +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/interface.h @@ -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, \ diff --git a/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c b/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c index 2d8dbd8fb4f..8623b5333ef 100644 --- a/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c +++ b/reactos/drivers/wdm/audio/legacy/wdmaud/mmixer.c @@ -266,7 +266,7 @@ Enum( return MM_STATUS_UNSUCCESSFUL; } - /* intialize key name */ + /* initialize key name */ RtlInitUnicodeString(&KeyName, *DeviceName); /* open device interface key */ diff --git a/reactos/drivers/wdm/audio/sysaudio/control.c b/reactos/drivers/wdm/audio/sysaudio/control.c index bf5568b6cdd..9932d093c55 100644 --- a/reactos/drivers/wdm/audio/sysaudio/control.c +++ b/reactos/drivers/wdm/audio/sysaudio/control.c @@ -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); } diff --git a/reactos/drivers/wdm/audio/sysaudio/main.c b/reactos/drivers/wdm/audio/sysaudio/main.c index e350c0a9396..ee7946146f3 100644 --- a/reactos/drivers/wdm/audio/sysaudio/main.c +++ b/reactos/drivers/wdm/audio/sysaudio/main.c @@ -219,7 +219,7 @@ SysAudio_AddDevice( NextDeviceObject = IoAttachDeviceToDeviceStack(DeviceObject, PhysicalDeviceObject); KsSetDevicePnpAndBaseObject(DeviceExtension->KsDeviceHeader, NextDeviceObject, DeviceObject); - /* register shutdown notfication */ + /* register shutdown notification */ IoRegisterShutdownNotification(DeviceObject); diff --git a/reactos/drivers/wmi/wmilib.c b/reactos/drivers/wmi/wmilib.c index c6cec4aad73..492be356aa2 100644 --- a/reactos/drivers/wmi/wmilib.c +++ b/reactos/drivers/wmi/wmilib.c @@ -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) * */ -- 2.17.1