[NTOSKRNL]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 28 Sep 2012 10:01:00 +0000 (10:01 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 28 Sep 2012 10:01:00 +0000 (10:01 +0000)
- Revert rev.57400 only for this file since CID 701342 was a false-positive from Coverity (because Coverity doesn't know what the aim of the POOL_RAISE_IF_ALLOCATION_FAILURE is).

svn path=/trunk/; revision=57411

reactos/ntoskrnl/fsrtl/notify.c

index a9bd1a2..3fdb49e 100644 (file)
@@ -586,13 +586,6 @@ FsRtlNotifyFilterChangeDirectory(IN PNOTIFY_SYNC NotifySync,
         /* Allocate new notification */
         NotifyChange = ExAllocatePoolWithTag(PagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE,
                                              sizeof(NOTIFY_CHANGE), 'FSrN');
         /* Allocate new notification */
         NotifyChange = ExAllocatePoolWithTag(PagedPool | POOL_RAISE_IF_ALLOCATION_FAILURE,
                                              sizeof(NOTIFY_CHANGE), 'FSrN');
-
-        /*
-         * If NotifyChange == NULL then an
-         * exception was already raised.
-         */
-        ASSERT(NotifyChange != NULL);
-
         RtlZeroMemory(NotifyChange, sizeof(NOTIFY_CHANGE));
 
         /* Set basic information */
         RtlZeroMemory(NotifyChange, sizeof(NOTIFY_CHANGE));
 
         /* Set basic information */