Return STATUS_NO_MEMORY instead of uninitialized Status on out of mem

svn path=/trunk/; revision=5127
This commit is contained in:
Gé van Geldorp 2003-07-15 10:42:53 +00:00
parent a294d0a9ef
commit 377c984b14

View file

@ -1,4 +1,4 @@
/* $Id: isapnp.c,v 1.5 2002/11/13 21:57:47 chorns Exp $ /* $Id: isapnp.c,v 1.6 2003/07/15 10:42:53 gvg Exp $
* *
* PROJECT: ReactOS ISA PnP Bus driver * PROJECT: ReactOS ISA PnP Bus driver
* FILE: isapnp.c * FILE: isapnp.c
@ -514,7 +514,7 @@ static NTSTATUS AddResourceDescriptor(
d = (PISAPNP_DESCRIPTOR) d = (PISAPNP_DESCRIPTOR)
ExAllocatePool(PagedPool, sizeof(ISAPNP_DESCRIPTOR)); ExAllocatePool(PagedPool, sizeof(ISAPNP_DESCRIPTOR));
if (!d) if (!d)
return Status; return STATUS_NO_MEMORY;
RtlZeroMemory(d, sizeof(ISAPNP_DESCRIPTOR)); RtlZeroMemory(d, sizeof(ISAPNP_DESCRIPTOR));