Author: pschweitzer Date: Fri Jan 9 08:53:01 2009 New Revision: 38665
URL: http://svn.reactos.org/svn/reactos?rev=38665&view=rev Log: - Added NOTIFY_CHANGE structure - Removed all calls to FsRtlAllocatePoolWithTag, use ExAllocatePoolWithTag with a flag instead - Renamed INT_NOTIFY_SYNC structure to REAL_NOTIFY_SYNC
Modified: branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c branches/pierre-fsd/ntoskrnl/fsrtl/notify.c
Modified: branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/fsrtl/largem... ============================================================================== --- branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c [iso-8859-1] (original) +++ branches/pierre-fsd/ntoskrnl/fsrtl/largemcb.c [iso-8859-1] Fri Jan 9 08:53:01 2009 @@ -114,7 +114,9 @@ } else { - Mcb->Mapping = FsRtlAllocatePoolWithTag(PoolType, sizeof(INT_MAPPING) * MAXIMUM_PAIR_COUNT, TAG('F', 'S', 'B', 'C')); + Mcb->Mapping = ExAllocatePoolWithTag(PoolType | POOL_RAISE_IF_ALLOCATION_FAILURE, + sizeof(INT_MAPPING) * MAXIMUM_PAIR_COUNT, + TAG('F', 'S', 'B', 'C')); }
Mcb->PoolType = PoolType;
Modified: branches/pierre-fsd/ntoskrnl/fsrtl/notify.c URL: http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/fsrtl/notify... ============================================================================== --- branches/pierre-fsd/ntoskrnl/fsrtl/notify.c [iso-8859-1] (original) +++ branches/pierre-fsd/ntoskrnl/fsrtl/notify.c [iso-8859-1] Fri Jan 9 08:53:01 2009 @@ -368,16 +368,17 @@ NTAPI FsRtlNotifyInitializeSync(IN PNOTIFY_SYNC *NotifySync) { - PINT_NOTIFY_SYNC IntNotifySync; + PREAL_NOTIFY_SYNC RealNotifySync;
*NotifySync = NULL;
- IntNotifySync = FsRtlAllocatePoolWithTag(NonPagedPool, sizeof(INT_NOTIFY_SYNC), TAG('F', 'S', 'N', 'S')); - ExInitializeFastMutex(&(IntNotifySync->FastMutex)); - IntNotifySync->OwningThread = 0; - IntNotifySync->OwnerCount = 0; - - *NotifySync = IntNotifySync; + RealNotifySync = ExAllocatePoolWithTag(NonPagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE, + sizeof(REAL_NOTIFY_SYNC), TAG('F', 'S', 'N', 'S')); + ExInitializeFastMutex(&(RealNotifySync->FastMutex)); + RealNotifySync->OwningThread = 0; + RealNotifySync->OwnerCount = 0; + + *NotifySync = RealNotifySync; }
/*++