mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 05:05:09 +00:00
[NTOSKRNL]
Do not try to dereference Irp->UserIosb if it is NULL, to avoid unnecessary exceptions (inside SEH). svn path=/trunk/; revision=64947
This commit is contained in:
parent
08701eea3f
commit
02995bf1a1
|
@ -324,17 +324,21 @@ IopCompleteRequest(IN PKAPC Apc,
|
||||||
Key = FileObject->CompletionContext->Key;
|
Key = FileObject->CompletionContext->Key;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Use SEH to make sure we don't write somewhere invalid */
|
/* Check for UserIos */
|
||||||
_SEH2_TRY
|
if (Irp->UserIosb != NULL)
|
||||||
{
|
{
|
||||||
/* Save the IOSB Information */
|
/* Use SEH to make sure we don't write somewhere invalid */
|
||||||
*Irp->UserIosb = Irp->IoStatus;
|
_SEH2_TRY
|
||||||
|
{
|
||||||
|
/* Save the IOSB Information */
|
||||||
|
*Irp->UserIosb = Irp->IoStatus;
|
||||||
|
}
|
||||||
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
|
{
|
||||||
|
/* Ignore any error */
|
||||||
|
}
|
||||||
|
_SEH2_END;
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
|
||||||
{
|
|
||||||
/* Ignore any error */
|
|
||||||
}
|
|
||||||
_SEH2_END;
|
|
||||||
|
|
||||||
/* Check if we have an event or a file object */
|
/* Check if we have an event or a file object */
|
||||||
if (Irp->UserEvent)
|
if (Irp->UserEvent)
|
||||||
|
|
Loading…
Reference in a new issue