rem: buffer.Length = 255; buffer.Pointer = malloc(255);
context: static ACPI_STATUS get_device_by_hid_callback(ACPI_HANDLE object, UINT32 depth, void *context, void **return_val) {	ACPI_STATUS result;	ACPI_BUFFER buffer;	uint32 *counter = (uint32 *)(context);			buffer.Length = 255;	buffer.Pointer = malloc(255);		*return_val = NULL;		if (counter[0] == counter[1]) {		result = AcpiGetName(object,ACPI_FULL_PATHNAME,&buffer);		if (result != AE_OK)			return result;				((char*)(buffer.Pointer))[buffer.Length] = '\0';		*return_val = buffer.Pointer;		return AE_CTRL_TERMINATE;	}		counter[1]++;	return AE_OK;}