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:
Augustin Cavalier 2019-07-11 23:40:41 -04:00
parent 1418cade55
commit 4c9e8f77e4

View File

@ -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;
}