1
0
Fork 0

Only standard 3-byte mouse data packets are supported, so return an error for other packet sizes. MS Mouse driver versions 9.X and later use 1-byte packets for some obscure reason, and now they won't load instead of messing up.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4191
This commit is contained in:
ripsaw8080 2019-02-04 15:27:26 +00:00
parent 88bc1944e8
commit 45f28b12bd

View file

@ -905,6 +905,12 @@ static Bitu INT15_Handler(void) {
reg_bx=0x00aa; // mouse
// fall through
case 0x05: // initialize
if ((reg_al==0x05) && (reg_bh!=0x03)) {
// non-standard data packet sizes not supported
CALLBACK_SCF(true);
reg_ah=2;
break;
}
Mouse_SetPS2State(false);
CALLBACK_SCF(false);
reg_ah=0;