mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
- 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:
parent
c28ade37e5
commit
705683b520
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue