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:
parent
1418cade55
commit
4c9e8f77e4
@ -612,7 +612,7 @@ LegacyBootMenu::_GetBIOSDrive(const char* device, int8& drive)
|
||||
if (fd < 0)
|
||||
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);
|
||||
return status;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user