- Don't dereference inside an SEH block after doing unsafe writes, as this could be missed in case a pointer is bad.

svn path=/trunk/; revision=37111
This commit is contained in:
Stefan Ginsberg
2008-10-31 13:16:01 +00:00
parent c28ade37e5
commit 705683b520
+3 -3
View File
@@ -424,9 +424,6 @@ NtQueryIoCompletion(IN HANDLE IoCompletionHandle,
((PIO_COMPLETION_BASIC_INFORMATION)IoCompletionInformation)->
Depth = KeReadStateQueue(Queue);
/* Dereference the queue */
ObDereferenceObject(Queue);
/* Return Result Length if needed */
if (ResultLength)
{
@@ -439,6 +436,9 @@ NtQueryIoCompletion(IN HANDLE IoCompletionHandle,
Status = _SEH_GetExceptionCode();
}
_SEH_END;
/* Dereference the queue */
ObDereferenceObject(Queue);
}
/* Return Status */