mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
Don't fail if CCB_SYSTEM_FLAG can't be set
svn path=/trunk/; revision=32706
This commit is contained in:
parent
a2d5fcf09a
commit
1cdbc02cc8
1 changed files with 6 additions and 2 deletions
|
@ -156,10 +156,14 @@ i8042DetectKeyboard(
|
|||
WARN_(I8042PRT, "Warning: can't write SET_LEDS (0x%08lx)\n", Status);
|
||||
}
|
||||
|
||||
/* Turn on translation and SF (Some machines don't reboot if SF is not set) */
|
||||
if (!i8042ChangeMode(DeviceExtension, 0, CCB_TRANSLATE | CCB_SYSTEM_FLAG))
|
||||
/* Turn on translation */
|
||||
if (!i8042ChangeMode(DeviceExtension, 0, CCB_TRANSLATE))
|
||||
return FALSE;
|
||||
|
||||
/* Turn on SF (Some machines don't reboot if SF is not set) ;
|
||||
* we assume that if call fails, machine doesn't need it. */
|
||||
i8042ChangeMode(DeviceExtension, 0, CCB_SYSTEM_FLAG);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue