mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 03:15:43 +00:00
[NTOS:IO]
- Fix file object reference leak in NtWriteFile CORE-9472 #resolve svn path=/trunk/; revision=67014
This commit is contained in:
parent
0b933fb6ad
commit
df58c359d2
1 changed files with 2 additions and 1 deletions
|
@ -3201,7 +3201,8 @@ NtWriteFile(IN HANDLE FileHandle,
|
||||||
}
|
}
|
||||||
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
_SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER)
|
||||||
{
|
{
|
||||||
/* Return the exception code */
|
/* Release the file object and return the exception code */
|
||||||
|
ObDereferenceObject(FileObject);
|
||||||
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
_SEH2_YIELD(return _SEH2_GetExceptionCode());
|
||||||
}
|
}
|
||||||
_SEH2_END;
|
_SEH2_END;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue