Author: sginsberg
Date: Wed Sep 24 12:16:25 2008
New Revision: 36490
URL:
http://svn.reactos.org/svn/reactos?rev=36490&view=rev
Log:
- HalpXboxReadSector: Fail if we are out of memory instead of dereferencing null
- Fix for Coverity error CID: 464
Modified:
trunk/reactos/hal/halx86/xbox/part_xbox.c
Modified: trunk/reactos/hal/halx86/xbox/part_xbox.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/xbox/part_xbox.…
==============================================================================
--- trunk/reactos/hal/halx86/xbox/part_xbox.c [iso-8859-1] (original)
+++ trunk/reactos/hal/halx86/xbox/part_xbox.c [iso-8859-1] Wed Sep 24 12:16:25 2008
@@ -76,6 +76,7 @@
SectorOffset,
&Event,
&StatusBlock);
+ if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
Status = IoCallDriver(DeviceObject,
Irp);