Author: pschweitzer
Date: Sun Dec 28 14:14:39 2008
New Revision: 38433
URL:
http://svn.reactos.org/svn/reactos?rev=38433&view=rev
Log:
FsRtlInitializeLargeMcb: encapsulate FsRtlInitializeBaseMcb call with PSEH
Modified:
branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c
Modified: branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c
URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/fsrtl/large…
==============================================================================
--- branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c [iso-8859-1] (original)
+++ branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c [iso-8859-1] Sun Dec 28 14:14:39 2008
@@ -134,7 +134,17 @@
ExInitializeFastMutex(Mcb->FastMutex);
KeInitializeGate((PKGATE)&(Mcb->FastMutex->Gate));
- FsRtlInitializeBaseMcb(&(Mcb->BaseMcb), PoolType);
+ _SEH_TRY
+ {
+ FsRtlInitializeBaseMcb(&(Mcb->BaseMcb), PoolType);
+ }
+ _SEH_HANDLE
+ {
+ ExFreeToNPagedLookasideList(&FsRtlFastMutexLookasideList,
+ Mcb->FastMutex);
+ Mcb = NULL;
+ }
+ _SEH_END;
}
/*