[ros-diffs] [pschweitzer] 34217: Partly reverted r34166: there's no need to use SEH with CcInitializeCacheMap, it doesn't raise exceptions.

pschweitzer at svn.reactos.org pschweitzer at svn.reactos.org
Mon Jun 30 12:51:30 CEST 2008


Author: pschweitzer
Date: Mon Jun 30 05:51:29 2008
New Revision: 34217

URL: http://svn.reactos.org/svn/reactos?rev=34217&view=rev
Log:
Partly reverted r34166: there's no need to use SEH with CcInitializeCacheMap, it doesn't raise exceptions.

Modified:
    branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c

Modified: branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c
URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c?rev=34217&r1=34216&r2=34217&view=diff
==============================================================================
--- branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original)
+++ branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Mon Jun 30 05:51:29 2008
@@ -537,21 +537,11 @@
    Fcb->RFCB.ValidDataLength = Fcb->RFCB.FileSize;
    Fcb->RFCB.AllocationSize = Fcb->RFCB.FileSize;
 
-   _SEH_TRY
-   {
-     CcInitializeCacheMap(DeviceExt->FATFileObject,
-                          (PCC_FILE_SIZES)(&Fcb->RFCB.AllocationSize),
-                          FALSE,
-                          &VfatGlobalData->CacheMgrCallbacks,
-                          Fcb);
-   }
-   _SEH_HANDLE
-   {
-     Status = _SEH_GetExceptionCode();
-   }
-   _SEH_END;
-   if (!NT_SUCCESS(Status))
-     goto ByeBye;
+   CcInitializeCacheMap(DeviceExt->FATFileObject,
+                        (PCC_FILE_SIZES)(&Fcb->RFCB.AllocationSize),
+                        FALSE,
+                        &VfatGlobalData->CacheMgrCallbacks,
+                        Fcb);
 
    DeviceExt->LastAvailableCluster = 2;
    ExInitializeResourceLite(&DeviceExt->FatResource);



More information about the Ros-diffs mailing list