Simply fix up the formatting, there were tabs and 3 spaces and 4 spaces and 2 spaces identation. No code was harmed.

svn path=/trunk/; revision=14997
This commit is contained in:
Alex Ionescu 2005-05-05 12:35:09 +00:00
parent 74d7b0c5f4
commit 264cee75a3

View file

@ -1232,7 +1232,10 @@ IoSecondStageCompletion(PKAPC Apc,
Irp = CONTAINING_RECORD(Apc, IRP, Tail.Apc); Irp = CONTAINING_RECORD(Apc, IRP, Tail.Apc);
DPRINT("IoSecondStageCompletition, %x\n", Irp); DPRINT("IoSecondStageCompletition, %x\n", Irp);
/* Save the User Event */
UserEvent = Irp->UserEvent; UserEvent = Irp->UserEvent;
/* Remember if the IRP is Sync or not */
SyncIrp = Irp->Flags & IRP_SYNCHRONOUS_API ? TRUE : FALSE; SyncIrp = Irp->Flags & IRP_SYNCHRONOUS_API ? TRUE : FALSE;
/* Handle Buffered case first */ /* Handle Buffered case first */
@ -1294,6 +1297,7 @@ IoSecondStageCompletion(PKAPC Apc,
/* Set the Status */ /* Set the Status */
FileObject->FinalStatus = Irp->IoStatus.Status; FileObject->FinalStatus = Irp->IoStatus.Status;
/* FIXME: Remove this check when I/O code is fixed */
if (UserEvent != &FileObject->Event) if (UserEvent != &FileObject->Event)
{ {
/* Signal Event */ /* Signal Event */
@ -1309,7 +1313,7 @@ IoSecondStageCompletion(PKAPC Apc,
} }
/* Now call the User APC if one was requested */ /* Now call the User APC if one was requested */
if (Irp->Overlay.AsynchronousParameters.UserApcRoutine != NULL) if (Irp->Overlay.AsynchronousParameters.UserApcRoutine)
{ {
KeInitializeApc(&Irp->Tail.Apc, KeInitializeApc(&Irp->Tail.Apc,
KeGetCurrentThread(), KeGetCurrentThread(),
@ -1339,14 +1343,13 @@ IoSecondStageCompletion(PKAPC Apc,
} }
} }
if (Irp) /* Free the Irp if it hasn't already */
{ if (Irp) IoFreeIrp(Irp);
IoFreeIrp(Irp);
}
if (FileObject) if (FileObject)
{ {
/* Dereference the user event, if it is an event object */ /* Dereference the user event, if it is an event object */
/* FIXME: Remove last check when I/O code is fixed */
if (UserEvent && !SyncIrp && UserEvent != &FileObject->Event) if (UserEvent && !SyncIrp && UserEvent != &FileObject->Event)
{ {
ObDereferenceObject(UserEvent); ObDereferenceObject(UserEvent);