mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
Return STATUS_NO_MEMORY instead of uninitialized Status on out of mem
svn path=/trunk/; revision=5127
This commit is contained in:
parent
a294d0a9ef
commit
377c984b14
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue