New params, typecasts

date	2000.05.19.22.05.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:39:47 +00:00
parent 1821a7f2d8
commit 4ae851ab49

View File

@ -218,16 +218,16 @@ RegionHandler (
/*
* Do the memory allocations first
*/
RegionElement = malloc (sizeof(REGION));
RegionElement = OsdAllocate (sizeof(REGION));
if (!RegionElement)
{
return AE_NO_MEMORY;
}
RegionElement->Buffer = malloc (Length);
RegionElement->Buffer = OsdAllocate (Length);
if (!RegionElement->Buffer)
{
free(RegionElement);
OsdFree (RegionElement);
return AE_NO_MEMORY;
}
@ -483,7 +483,7 @@ AdSecondPassParse (
if (Op->Opcode == AML_MethodOp)
{
Method = (ACPI_DEFERRED_OP *) Op;
Status = PsParseAml (Op, Method->Body, Method->BodyLength);
Status = PsParseAml (Op, Method->Body, Method->BodyLength, 0);
BaseAmlOffset = (Method->Value.Arg)->AmlOffset + 1;