Author: cgutman
Date: Thu Mar 25 01:35:36 2010
New Revision: 46417
URL:
http://svn.reactos.org/svn/reactos?rev=46417&view=rev
Log:
[ACPI]
- Don't attempt to parse output arguments if none were returned
Modified:
trunk/reactos/drivers/bus/acpi/eval.c
Modified: trunk/reactos/drivers/bus/acpi/eval.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/bus/acpi/eval.c?re…
==============================================================================
--- trunk/reactos/drivers/bus/acpi/eval.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/bus/acpi/eval.c [iso-8859-1] Thu Mar 25 01:35:36 2010
@@ -93,6 +93,10 @@
ACPI_OBJECT *Obj = RetBuff.Pointer;
ULONG ExtraParamLength;
+ /* If we didn't get anything back then we're done */
+ if (!RetBuff.Pointer || RetBuff.Length == 0)
+ return STATUS_SUCCESS;
+
switch (Obj->Type)
{
case ACPI_TYPE_INTEGER: