Sync with trunk (r48545)
[reactos.git] / drivers / filesystems / fastfat_new / rw.c
index a4b887b..cdaea2b 100644 (file)
@@ -91,11 +91,7 @@ FatRead(PDEVICE_OBJECT DeviceObject, PIRP Irp)
     if (DeviceObject != FatGlobalData.DiskDeviceObject)
     {
         /* Set Top Level IRP if not set */
-        if (IoGetTopLevelIrp() == NULL)
-        {
-            IoSetTopLevelIrp(Irp);
-            TopLevel = TRUE;
-        }
+        TopLevel = FatIsTopLevelIrp(Irp);
 
         /* Build an irp context */
         IrpContext = FatBuildIrpContext(Irp, CanWait);