From 377c984b14c4cfdcc343fdbe936ac6e602bf5512 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Tue, 15 Jul 2003 10:42:53 +0000 Subject: [PATCH] Return STATUS_NO_MEMORY instead of uninitialized Status on out of mem svn path=/trunk/; revision=5127 --- reactos/drivers/bus/isapnp/isapnp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/drivers/bus/isapnp/isapnp.c b/reactos/drivers/bus/isapnp/isapnp.c index e5c5836ccbc..bef43cb2519 100644 --- a/reactos/drivers/bus/isapnp/isapnp.c +++ b/reactos/drivers/bus/isapnp/isapnp.c @@ -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 * FILE: isapnp.c @@ -514,7 +514,7 @@ static NTSTATUS AddResourceDescriptor( d = (PISAPNP_DESCRIPTOR) ExAllocatePool(PagedPool, sizeof(ISAPNP_DESCRIPTOR)); if (!d) - return Status; + return STATUS_NO_MEMORY; RtlZeroMemory(d, sizeof(ISAPNP_DESCRIPTOR));