Changed to AddReference

date	2000.04.27.23.06.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 17:35:48 +00:00
parent c97338699b
commit 5f3bc42215

View File

@ -507,12 +507,6 @@ AmlExecMonadic2R (
}
Status = AmlExecStore (RetDesc2, ResDesc);
if (RetDesc2->Common.ReferenceCount > 1)
{
DEBUG_PRINT (TRACE_EXEC, ("AmlExecMonadic2R: Return Obj %p has other refs, incrementing\n",
RetDesc2));
CmUpdateObjectReference (RetDesc2, REF_INCREMENT);
}
/* The object exists in the namespace, return TRUE */
@ -537,16 +531,6 @@ AmlExecMonadic2R (
Status = AmlExecStore (ObjDesc, ResDesc);
/*
if (ObjDesc->Common.ReferenceCount > ReferenceCount)
{
DEBUG_PRINT (TRACE_EXEC, ("AmlExecMonadic2R: Operand %p was physically stored, not deleting\n",
ObjDesc));
CmUpdateObjectReference (ObjDesc, REF_INCREMENT);
}
*/
/*
* Normally, we would remove a reference on the ObjDesc parameter; But since it
* is being used as the internal return object (meaning we would normally increment it),
@ -554,11 +538,6 @@ AmlExecMonadic2R (
*/
/* Since we are returning a reference to the object, increment the reference count! */
// CmUpdateObjectReference (ObjDesc, REF_INCREMENT);
*ReturnDesc = ObjDesc;
ObjDesc = NULL;
return_ACPI_STATUS (Status);
@ -974,7 +953,7 @@ AmlExecMonadic2 (
/* Returning a pointer to the object, add another reference! */
CmUpdateObjectReference (RetDesc, REF_INCREMENT);
CmAddReference (RetDesc);
}
else
@ -1030,7 +1009,7 @@ AmlExecMonadic2 (
*/
RetDesc = *(ObjDesc->Reference.Where);
CmUpdateObjectReference (RetDesc, REF_INCREMENT);
CmAddReference (RetDesc);
}
else
@ -1050,7 +1029,7 @@ AmlExecMonadic2 (
/* Add another reference to the object! */
CmUpdateObjectReference (RetDesc, REF_INCREMENT);
CmAddReference (RetDesc);
break;
}
}