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:
parent
ea8e6dbaab
commit
3ca956b5bb
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user