Author: hbelusca
Date: Mon Jul 4 22:35:15 2016
New Revision: 71818
URL:
http://svn.reactos.org/svn/reactos?rev=71818&view=rev
Log:
Fix misspelling "Detatch" --> "Detach"
Modified:
trunk/reactos/drivers/fs_minifilter/fltmgr/Interface.c
trunk/reactos/ntoskrnl/mm/ARM3/section.c
Modified: trunk/reactos/drivers/fs_minifilter/fltmgr/Interface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/fs_minifilter/fltm…
==============================================================================
--- trunk/reactos/drivers/fs_minifilter/fltmgr/Interface.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/fs_minifilter/fltmgr/Interface.c [iso-8859-1] Mon Jul 4
22:35:15 2016
@@ -385,13 +385,13 @@
} FLTMGR_DEVICE_EXTENSION, *PFLTMGR_DEVICE_EXTENSION;
-typedef struct _DETATCH_DEVICE_WORK_ITEM
+typedef struct _DETACH_DEVICE_WORK_ITEM
{
WORK_QUEUE_ITEM WorkItem;
PDEVICE_OBJECT SourceDevice;
PDEVICE_OBJECT TargetDevice;
-} DETATCH_DEVICE_WORK_ITEM, *PDETATCH_DEVICE_WORK_ITEM;
+} DETACH_DEVICE_WORK_ITEM, *PDETACH_DEVICE_WORK_ITEM;
/* DISPATCH ROUTINES **********************************************/
@@ -975,21 +975,21 @@
VOID
NTAPI
-FltpFastIoDetatchDeviceWorker(_In_ PVOID Parameter)
-{
- PDETATCH_DEVICE_WORK_ITEM DetatchDeviceWorkItem = Parameter;
+FltpFastIoDetachDeviceWorker(_In_ PVOID Parameter)
+{
+ PDETACH_DEVICE_WORK_ITEM DetachDeviceWorkItem = Parameter;
/* Run any cleanup routines */
- FltpCleanupDeviceObject(DetatchDeviceWorkItem->SourceDevice);
-
- /* Detatch from the target device */
- IoDetachDevice(DetatchDeviceWorkItem->TargetDevice);
+ FltpCleanupDeviceObject(DetachDeviceWorkItem->SourceDevice);
+
+ /* Detach from the target device */
+ IoDetachDevice(DetachDeviceWorkItem->TargetDevice);
/* Delete the source */
- IoDeleteDevice(DetatchDeviceWorkItem->SourceDevice);
+ IoDeleteDevice(DetachDeviceWorkItem->SourceDevice);
/* Free the pool we allocated in FltpFastIoDetachDevice */
- ExFreePoolWithTag(DetatchDeviceWorkItem, 0x1234);
+ ExFreePoolWithTag(DetachDeviceWorkItem, 0x1234);
}
VOID
@@ -997,29 +997,29 @@
FltpFastIoDetachDevice(_In_ PDEVICE_OBJECT SourceDevice,
_In_ PDEVICE_OBJECT TargetDevice)
{
- PDETATCH_DEVICE_WORK_ITEM DetatchDeviceWorkItem;
+ PDETACH_DEVICE_WORK_ITEM DetachDeviceWorkItem;
PAGED_CODE();
/*
- * Detatching and deleting devices is a lot of work and takes too long
+ * Detaching and deleting devices is a lot of work and takes too long
* to be a worthwhile FastIo candidate, so we defer this call to speed
* it up. There's no return value so we're okay to do this.
*/
/* Allocate the work item and it's corresponding data */
- DetatchDeviceWorkItem = ExAllocatePoolWithTag(NonPagedPool,
- sizeof(DETATCH_DEVICE_WORK_ITEM),
- 0x1234);
- if (DetatchDeviceWorkItem)
+ DetachDeviceWorkItem = ExAllocatePoolWithTag(NonPagedPool,
+ sizeof(DETACH_DEVICE_WORK_ITEM),
+ 0x1234);
+ if (DetachDeviceWorkItem)
{
/* Initialize the work item */
- ExInitializeWorkItem(&DetatchDeviceWorkItem->WorkItem,
- FltpFastIoDetatchDeviceWorker,
- DetatchDeviceWorkItem);
+ ExInitializeWorkItem(&DetachDeviceWorkItem->WorkItem,
+ FltpFastIoDetachDeviceWorker,
+ DetachDeviceWorkItem);
/* Queue the work item and return the call */
- ExQueueWorkItem(&DetatchDeviceWorkItem->WorkItem,
+ ExQueueWorkItem(&DetachDeviceWorkItem->WorkItem,
DelayedWorkQueue);
}
else
@@ -1948,7 +1948,7 @@
}
else
{
- /* Run the detatch routine */
+ /* Run the detach routine */
FltpDetachFromFileSystemDevice(DeviceObject);
}
Modified: trunk/reactos/ntoskrnl/mm/ARM3/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/section.c…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/section.c [iso-8859-1] Mon Jul 4 22:35:15 2016
@@ -2841,7 +2841,7 @@
ZeroBits,
AllocationType);
- /* Detatch if needed, then return status */
+ /* Detach if needed, then return status */
if (Attached) KeUnstackDetachProcess(&ApcState);
return Status;
}