Author: pschweitzer
Date: Sun Oct 12 03:09:30 2008
New Revision: 36730
URL:
http://svn.reactos.org/svn/reactos?rev=36730&view=rev
Log:
Protect notifications initialization stuff using PSEH
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/…
==============================================================================
--- branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] (original)
+++ branches/pierre-fsd/drivers/filesystems/fastfat/fsctl.c [iso-8859-1] Sun Oct 12
03:09:30 2008
@@ -584,11 +584,20 @@
}
VolumeFcb->Flags |= VCB_IS_DIRTY;
+ Status = STATUS_SUCCESS;
+
/* Initialize notify sync */
- InitializeListHead(&(DeviceExt->NotifyList));
- FsRtlNotifyInitializeSync(&(DeviceExt->NotifySync));
-
- Status = STATUS_SUCCESS;
+ _SEH_TRY
+ {
+ InitializeListHead(&(DeviceExt->NotifyList));
+ FsRtlNotifyInitializeSync(&(DeviceExt->NotifySync));
+ }
+ _SEH_HANDLE
+ {
+ Status = _SEH_GetExceptionCode();
+ }
+ _SEH_END;
+
ByeBye:
if (!NT_SUCCESS(Status))