mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:15:52 +00:00
- Don't create a possibility for CriticalRegion leakage (spotted by PREfast).
svn path=/trunk/; revision=30592
This commit is contained in:
parent
b74b8c6e6a
commit
9e0a62ad2c
1 changed files with 5 additions and 3 deletions
|
@ -142,6 +142,7 @@ NTSTATUS NTAPI VfatBuildRequest (
|
|||
{
|
||||
NTSTATUS Status;
|
||||
PVFAT_IRP_CONTEXT IrpContext;
|
||||
KIRQL Irql;
|
||||
|
||||
DPRINT ("VfatBuildRequest (DeviceObject %x, Irp %x)\n", DeviceObject, Irp);
|
||||
|
||||
|
@ -156,17 +157,18 @@ NTSTATUS NTAPI VfatBuildRequest (
|
|||
}
|
||||
else
|
||||
{
|
||||
if (KeGetCurrentIrql() <= PASSIVE_LEVEL)
|
||||
Irql = KeGetCurrentIrql();
|
||||
if (Irql <= PASSIVE_LEVEL)
|
||||
{
|
||||
FsRtlEnterFileSystem();
|
||||
}
|
||||
else
|
||||
{
|
||||
DPRINT1("Vfat is entered at irql = %d\n", KeGetCurrentIrql());
|
||||
DPRINT1("Vfat is entered at irql = %d\n", Irql);
|
||||
}
|
||||
Status = VfatDispatchRequest (IrpContext);
|
||||
|
||||
if (KeGetCurrentIrql() <= PASSIVE_LEVEL)
|
||||
if (Irql <= PASSIVE_LEVEL)
|
||||
{
|
||||
FsRtlExitFileSystem();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue