BootManager: Take explicit instead of implicit reference.
Passing a type& to a va-args turns it into a pointer as per the Itanium ABI; but we shouldn't rely on such trickery. Explicitly capture a reference to it instead.
This commit is contained in:
@@ -612,7 +612,7 @@ LegacyBootMenu::_GetBIOSDrive(const char* device, int8& drive)
|
|||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
return errno;
|
return errno;
|
||||||
|
|
||||||
status_t status = ioctl(fd, B_GET_BIOS_DRIVE_ID, drive, 1);
|
status_t status = ioctl(fd, B_GET_BIOS_DRIVE_ID, &drive, 1);
|
||||||
close(fd);
|
close(fd);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user