rem: if (AcpiGetObjectInfo(handle,&info) != AE_OK)
add: info_buffer.Pointer = info = (ACPI_DEVICE_INFO *)malloc(sizeof(ACPI_DEVICE_INFO)); info_buffer.Length = sizeof(ACPI_DEVICE_INFO);  if (AcpiGetObjectInfo(handle,&info_buffer) != AE_OK) { free(info_buffer.Pointer);
context: status_t get_device_hid (const char *path, char *hid) {	ACPI_HANDLE handle;	ACPI_DEVICE_INFO info;		if (AcpiGetHandle(NULL,path,&handle) != AE_OK)		return B_ENTRY_NOT_FOUND;		if (AcpiGetObjectInfo(handle,&info) != AE_OK)		return B_BAD_TYPE;			strcpy(hid,info.HardwareId.Value);	return B_OK;}