[ros-dev] [ros-diffs] [hbelusca] 57400: [NTOSKRNL] Coverity code defects fixes : - Cache: CID 701441 - Config: CIDs 716570, 716669, 716760 - Dbgk: Kdbg: CIDs 716571, 515128/9, 500432 - Ex: CIDs 500156/7, 515122, 716200/...
Pierre Schweitzer
pierre at reactos.org
Fri Sep 28 07:57:05 UTC 2012
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 <pierre at reactos.org>
System Administrator
ReactOS Foundation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4016 bytes
Desc: not available
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20120928/c805e07b/attachment.bin>
More information about the Ros-dev
mailing list