From 3c655e1278b43193cfa6f197beb83dab66a6df9e Mon Sep 17 00:00:00 2001 From: Phillip Susi Date: Sat, 29 Sep 2001 19:40:49 +0000 Subject: [PATCH] Do not bugcheck on ExFreePool( 0 ) svn path=/trunk/; revision=2262 --- reactos/ntoskrnl/mm/npool.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/reactos/ntoskrnl/mm/npool.c b/reactos/ntoskrnl/mm/npool.c index 7373d83c47d..1dc1dd0b231 100644 --- a/reactos/ntoskrnl/mm/npool.c +++ b/reactos/ntoskrnl/mm/npool.c @@ -1,4 +1,4 @@ -/* $Id: npool.c,v 1.46 2001/05/05 19:13:10 chorns Exp $ +/* $Id: npool.c,v 1.47 2001/09/29 19:40:49 phreak Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -823,7 +823,8 @@ VOID STDCALL ExFreePool (PVOID block) BLOCK_HDR* blk=address_to_block(block); KIRQL oldIrql; - assert(block); + if( !block ) + return; DPRINT("freeing block %x\n",blk);