[NTOS:FSRTL] Properly leave FsRtl when returning STATUS_CANT_WAIT

This commit is contained in:
Jérôme Gardou 2021-01-27 09:22:32 +01:00
parent 3efc5b1734
commit bde2ee571a

View file

@ -1714,9 +1714,13 @@ FsRtlAcquireFileForCcFlushEx(IN PFILE_OBJECT FileObject)
/* Return either success or inability to wait. /* Return either success or inability to wait.
In case of other failure - fall through */ In case of other failure - fall through */
if (Status == STATUS_SUCCESS || if (NT_SUCCESS(Status))
Status == STATUS_CANT_WAIT) return Status;
if (Status == STATUS_CANT_WAIT)
{ {
DPRINT1("STATUS_CANT_WAIT\n");
FsRtlExitFileSystem();
return Status; return Status;
} }
} }