Author: aandrejevic
Date: Sat Sep 19 22:29:45 2015
New Revision: 69298
URL:
http://svn.reactos.org/svn/reactos?rev=69298&view=rev
Log:
[NTVDM]
Save and restore BP, DS and ES when calling the mouse callback.
Modified:
trunk/reactos/subsystems/mvdm/ntvdm/dos/mouse32.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/mouse32.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/…
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/dos/mouse32.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/dos/mouse32.c [iso-8859-1] Sat Sep 19 22:29:45
2015
@@ -243,7 +243,7 @@
static VOID CallMouseUserHandlers(USHORT CallMask)
{
USHORT i;
- USHORT AX, BX, CX, DX, SI, DI;
+ USHORT AX, BX, CX, DX, BP, SI, DI, DS, ES;
COORD Position = DriverState.Position;
ToMouseCoordinates(&Position);
@@ -262,8 +262,11 @@
BX = getBX();
CX = getCX();
DX = getDX();
+ BP = getBP();
SI = getSI();
DI = getDI();
+ DS = getDS();
+ ES = getES();
setAX(CallMask);
setBX(DriverState.ButtonState);
@@ -284,8 +287,11 @@
setBX(BX);
setCX(CX);
setDX(DX);
+ setBP(BP);
setSI(SI);
setDI(DI);
+ setDS(DS);
+ setES(ES);
}
for (i = 0; i < ARRAYSIZE(DriverState.Handlers); ++i)