mirror of
https://github.com/reactos/reactos.git
synced 2024-06-22 22:11:39 +00:00
[NTOSKRNL] Do. Not. L. E. A. K.
This commit is contained in:
parent
5570cde271
commit
092c37f845
|
@ -4121,29 +4121,18 @@ NtQueryVolumeInformationFile(IN HANDLE FileHandle,
|
|||
}
|
||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||
{
|
||||
/* Check if we had a file lock */
|
||||
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
||||
{
|
||||
/* Release it */
|
||||
IopUnlockFileObject(FileObject);
|
||||
}
|
||||
|
||||
/* Dereference the FO */
|
||||
ObDereferenceObject(FileObject);
|
||||
|
||||
/* Cleanup */
|
||||
IopCleanupAfterException(FileObject, NULL, NULL, Event);
|
||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||
}
|
||||
_SEH2_END;
|
||||
|
||||
/* Check if we had a file lock */
|
||||
if (FileObject->Flags & FO_SYNCHRONOUS_IO)
|
||||
{
|
||||
/* Release it */
|
||||
IopUnlockFileObject(FileObject);
|
||||
}
|
||||
|
||||
/* Dereference the FO */
|
||||
ObDereferenceObject(FileObject);
|
||||
/*
|
||||
* We didn't have an exception, but we didn't issue an IRP
|
||||
* to complete either, so avoid duplicating code and
|
||||
* call appropriate helper
|
||||
*/
|
||||
IopCleanupAfterException(FileObject, NULL, NULL, Event);
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue