PowerStatus: call the APM syscall with the correct struct.

This commit is contained in:
Jérôme Duval 2018-01-06 16:12:18 +01:00
parent b68d872bdb
commit e04d859b34
1 changed files with 2 additions and 2 deletions

View File

@ -30,9 +30,9 @@ APMDriverInterface::Connect()
status_t status = _kern_generic_syscall(APM_SYSCALLS, B_SYSCALL_INFO,
&version, sizeof(version));
if (status == B_OK) {
battery_info info;
apm_battery_info info;
status = _kern_generic_syscall(APM_SYSCALLS, APM_GET_BATTERY_INFO,
&info, sizeof(battery_info));
&info, sizeof(apm_battery_info));
}
return status;