Fixed a bug in executing control methods without return values.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11549 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Nathan Whitehorn 2005-03-03 00:40:21 +00:00
parent ea8e6dbaab
commit 3ca956b5bb

View File

@ -187,6 +187,6 @@ status_t evaluate_object (const char *object, void *return_value, size_t buf_len
buffer.Pointer = return_value;
buffer.Length = buf_len;
status = AcpiEvaluateObject(NULL,object,NULL,&buffer);
status = AcpiEvaluateObject(NULL,object,NULL,(return_value != NULL) ? &buffer : NULL);
return (status == AE_OK) ? B_OK : B_ERROR;
}