mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[NTOS:FSRTL] Properly leave FsRtl when returning STATUS_CANT_WAIT
This commit is contained in:
parent
3efc5b1734
commit
bde2ee571a
1 changed files with 6 additions and 2 deletions
|
@ -1714,9 +1714,13 @@ FsRtlAcquireFileForCcFlushEx(IN PFILE_OBJECT FileObject)
|
|||
|
||||
/* Return either success or inability to wait.
|
||||
In case of other failure - fall through */
|
||||
if (Status == STATUS_SUCCESS ||
|
||||
Status == STATUS_CANT_WAIT)
|
||||
if (NT_SUCCESS(Status))
|
||||
return Status;
|
||||
|
||||
if (Status == STATUS_CANT_WAIT)
|
||||
{
|
||||
DPRINT1("STATUS_CANT_WAIT\n");
|
||||
FsRtlExitFileSystem();
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue