Sorry, wrong version got commited
Modified: trunk/reactos/ntoskrnl/io/irp.c
_____
Modified: trunk/reactos/ntoskrnl/io/irp.c
--- trunk/reactos/ntoskrnl/io/irp.c 2005-05-09 00:38:57 UTC (rev
15159)
+++ trunk/reactos/ntoskrnl/io/irp.c 2005-05-09 00:41:55 UTC (rev
15160)
@@ -4,7 +4,8 @@
* FILE: ntoskrnl/io/irp.c
* PURPOSE: Handle IRPs
*
- * PROGRAMMERS: Alex Ionescu (alex(a)relsoft.net)
+ * PROGRAMMERS: Hartmut Birr
+ * Alex Ionescu (alex(a)relsoft.net)
* David Welch (welch(a)mcmail.com)
*/
@@ -104,7 +105,7 @@
while ((Mdl = Irp->MdlAddress))
{
/* Clear all of them */
- Irp->MdlAddress = Mdl->Next;
+ Irp->MdlAddress = Mdl->Next;
IoFreeMdl(Mdl);
}
@@ -150,10 +151,10 @@
KeSetEvent(UserEvent, 0, FALSE);
/* Dereference the Event if this is an ASYNC IRP */
- if (FileObject && !SyncIrp && UserEvent !=
&FileObject->Event)
- {
+ if (FileObject && !SyncIrp && UserEvent !=
&FileObject->Event)
+ {
ObDereferenceObject(UserEvent);
- }
+ }
}
else if (FileObject)
{
@@ -181,7 +182,7 @@
Irp->UserIosb,
NULL,
2);
- Irp = NULL;
+ Irp = NULL;
}
else if (FileObject && FileObject->CompletionContext)
{
@@ -192,7 +193,7 @@
Irp->IoStatus.Status,
Irp->IoStatus.Information,
FALSE);
- Irp = NULL;
+ Irp = NULL;
}
}
else
@@ -204,15 +205,15 @@
if (SyncIrp)
{
/* Set the status in this case only */
- _SEH_TRY
- {
- *Irp->UserIosb = Irp->IoStatus;
- }
- _SEH_HANDLE
- {
- /* Ignore any error */
- }
- _SEH_END;
+ _SEH_TRY
+ {
+ *Irp->UserIosb = Irp->IoStatus;
+ }
+ _SEH_HANDLE
+ {
+ /* Ignore any error */
+ }
+ _SEH_END;
/* Signal our event if we have one */
if (UserEvent)
@@ -228,16 +229,16 @@
else
{
#if 1
- /* FIXME: This is necessary to fix bug #609 */
- _SEH_TRY
- {
- *Irp->UserIosb = Irp->IoStatus;
- }
- _SEH_HANDLE
- {
- /* Ignore any error */
- }
- _SEH_END;
+ /* FIXME: This is necessary to fix bug #609 */
+ _SEH_TRY
+ {
+ *Irp->UserIosb = Irp->IoStatus;
+ }
+ _SEH_HANDLE
+ {
+ /* Ignore any error */
+ }
+ _SEH_END;
#endif
/* We'll report the Status to the File Object, not the
IRP */
FileObject->FinalStatus = Irp->IoStatus.Status;
@@ -260,11 +261,8 @@
/* Dereference the File Object */
if (FileObject) ObDereferenceObject(FileObject);
- if (Irp)
- {
- /* Free the IRP */
- IoFreeIrp(Irp);
- }
+ /* Free the IRP */
+ if (Irp) IoFreeIrp(Irp);
#else
Show replies by date