What's the purpose of such ASSERT?

> Modified: trunk/reactos/ntoskrnl/fsrtl/notify.c
> URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/notify.c?rev=57400&r1=57399&r2=57400&view=diff
>
==============================================================================
> --- trunk/reactos/ntoskrnl/fsrtl/notify.c [iso-8859-1] (original)
> +++ trunk/reactos/ntoskrnl/fsrtl/notify.c [iso-8859-1] Thu Sep 27
17:16:31 2012
> @@ -586,6 +586,13 @@
> /* 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 */
> 

-- 
Pierre Schweitzer <[email protected]>
System Administrator
ReactOS Foundation

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Ros-dev mailing list
[email protected]
http://www.reactos.org/mailman/listinfo/ros-dev

Reply via email to