Fix misspelling "Detatch" --> "Detach"

svn path=/trunk/; revision=71818
This commit is contained in:
Hermès Bélusca-Maïto 2016-07-04 22:35:15 +00:00
parent d5594d193f
commit 2f20a38912
2 changed files with 21 additions and 21 deletions

View file

@ -385,13 +385,13 @@ typedef struct _FLTMGR_DEVICE_EXTENSION
} FLTMGR_DEVICE_EXTENSION, *PFLTMGR_DEVICE_EXTENSION; } FLTMGR_DEVICE_EXTENSION, *PFLTMGR_DEVICE_EXTENSION;
typedef struct _DETATCH_DEVICE_WORK_ITEM typedef struct _DETACH_DEVICE_WORK_ITEM
{ {
WORK_QUEUE_ITEM WorkItem; WORK_QUEUE_ITEM WorkItem;
PDEVICE_OBJECT SourceDevice; PDEVICE_OBJECT SourceDevice;
PDEVICE_OBJECT TargetDevice; PDEVICE_OBJECT TargetDevice;
} DETATCH_DEVICE_WORK_ITEM, *PDETATCH_DEVICE_WORK_ITEM; } DETACH_DEVICE_WORK_ITEM, *PDETACH_DEVICE_WORK_ITEM;
/* DISPATCH ROUTINES **********************************************/ /* DISPATCH ROUTINES **********************************************/
@ -975,21 +975,21 @@ FltpFastIoDeviceControl(_In_ PFILE_OBJECT FileObject,
VOID VOID
NTAPI NTAPI
FltpFastIoDetatchDeviceWorker(_In_ PVOID Parameter) FltpFastIoDetachDeviceWorker(_In_ PVOID Parameter)
{ {
PDETATCH_DEVICE_WORK_ITEM DetatchDeviceWorkItem = Parameter; PDETACH_DEVICE_WORK_ITEM DetachDeviceWorkItem = Parameter;
/* Run any cleanup routines */ /* Run any cleanup routines */
FltpCleanupDeviceObject(DetatchDeviceWorkItem->SourceDevice); FltpCleanupDeviceObject(DetachDeviceWorkItem->SourceDevice);
/* Detatch from the target device */ /* Detach from the target device */
IoDetachDevice(DetatchDeviceWorkItem->TargetDevice); IoDetachDevice(DetachDeviceWorkItem->TargetDevice);
/* Delete the source */ /* Delete the source */
IoDeleteDevice(DetatchDeviceWorkItem->SourceDevice); IoDeleteDevice(DetachDeviceWorkItem->SourceDevice);
/* Free the pool we allocated in FltpFastIoDetachDevice */ /* Free the pool we allocated in FltpFastIoDetachDevice */
ExFreePoolWithTag(DetatchDeviceWorkItem, 0x1234); ExFreePoolWithTag(DetachDeviceWorkItem, 0x1234);
} }
VOID VOID
@ -997,29 +997,29 @@ NTAPI
FltpFastIoDetachDevice(_In_ PDEVICE_OBJECT SourceDevice, FltpFastIoDetachDevice(_In_ PDEVICE_OBJECT SourceDevice,
_In_ PDEVICE_OBJECT TargetDevice) _In_ PDEVICE_OBJECT TargetDevice)
{ {
PDETATCH_DEVICE_WORK_ITEM DetatchDeviceWorkItem; PDETACH_DEVICE_WORK_ITEM DetachDeviceWorkItem;
PAGED_CODE(); 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 * 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. * it up. There's no return value so we're okay to do this.
*/ */
/* Allocate the work item and it's corresponding data */ /* Allocate the work item and it's corresponding data */
DetatchDeviceWorkItem = ExAllocatePoolWithTag(NonPagedPool, DetachDeviceWorkItem = ExAllocatePoolWithTag(NonPagedPool,
sizeof(DETATCH_DEVICE_WORK_ITEM), sizeof(DETACH_DEVICE_WORK_ITEM),
0x1234); 0x1234);
if (DetatchDeviceWorkItem) if (DetachDeviceWorkItem)
{ {
/* Initialize the work item */ /* Initialize the work item */
ExInitializeWorkItem(&DetatchDeviceWorkItem->WorkItem, ExInitializeWorkItem(&DetachDeviceWorkItem->WorkItem,
FltpFastIoDetatchDeviceWorker, FltpFastIoDetachDeviceWorker,
DetatchDeviceWorkItem); DetachDeviceWorkItem);
/* Queue the work item and return the call */ /* Queue the work item and return the call */
ExQueueWorkItem(&DetatchDeviceWorkItem->WorkItem, ExQueueWorkItem(&DetachDeviceWorkItem->WorkItem,
DelayedWorkQueue); DelayedWorkQueue);
} }
else else
@ -1948,7 +1948,7 @@ FltpFsNotification(_In_ PDEVICE_OBJECT DeviceObject,
} }
else else
{ {
/* Run the detatch routine */ /* Run the detach routine */
FltpDetachFromFileSystemDevice(DeviceObject); FltpDetachFromFileSystemDevice(DeviceObject);
} }

View file

@ -2841,7 +2841,7 @@ MmMapViewOfArm3Section(IN PVOID SectionObject,
ZeroBits, ZeroBits,
AllocationType); AllocationType);
/* Detatch if needed, then return status */ /* Detach if needed, then return status */
if (Attached) KeUnstackDetachProcess(&ApcState); if (Attached) KeUnstackDetachProcess(&ApcState);
return Status; return Status;
} }