[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:
Timo Kreuzer 2014-10-24 07:16:44 +00:00
parent 08701eea3f
commit 02995bf1a1

View file

@ -324,6 +324,9 @@ IopCompleteRequest(IN PKAPC Apc,
Key = FileObject->CompletionContext->Key;
}
/* Check for UserIos */
if (Irp->UserIosb != NULL)
{
/* Use SEH to make sure we don't write somewhere invalid */
_SEH2_TRY
{
@ -335,6 +338,7 @@ IopCompleteRequest(IN PKAPC Apc,
/* Ignore any error */
}
_SEH2_END;
}
/* Check if we have an event or a file object */
if (Irp->UserEvent)