mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 05:45:41 +00:00
- Move the code from my previous commit before signalling the user event
- Sorry for the wasted commit number svn path=/trunk/; revision=46720
This commit is contained in:
parent
2f22a7d7f8
commit
7be442943e
1 changed files with 16 additions and 16 deletions
|
@ -460,6 +460,22 @@ IopCompleteRequest(IN PKAPC Apc,
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Check if we have an associated user IOSB */
|
||||
if (Irp->UserIosb)
|
||||
{
|
||||
/* We do, so let's give them the final status */
|
||||
_SEH2_TRY
|
||||
{
|
||||
/* Save the IOSB Information */
|
||||
*Irp->UserIosb = Irp->IoStatus;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
/* Ignore any error */
|
||||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
|
||||
/*
|
||||
* Either we didn't return from the request, or we did return but this
|
||||
* request was synchronous.
|
||||
|
@ -492,22 +508,6 @@ IopCompleteRequest(IN PKAPC Apc,
|
|||
}
|
||||
}
|
||||
|
||||
/* Check if we have an associated user IOSB */
|
||||
if (Irp->UserIosb)
|
||||
{
|
||||
/* We do, so let's give them the final status */
|
||||
_SEH2_TRY
|
||||
{
|
||||
/* Save the IOSB Information */
|
||||
*Irp->UserIosb = Irp->IoStatus;
|
||||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
/* Ignore any error */
|
||||
}
|
||||
_SEH2_END;
|
||||
}
|
||||
|
||||
/* Now that we got here, we do this for incomplete I/Os as well */
|
||||
if ((FileObject) && !(Irp->Flags & IRP_CREATE_OPERATION))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue