[NTVDM]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 14 Oct 2014 00:14:56 +0000 (00:14 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Tue, 14 Oct 2014 00:14:56 +0000 (00:14 +0000)
commitf4e263796c3f9ba639adffce4e58ee14af67a27e
tree56b6c2a686df6aacc788252ef21ce7894af01b6b
parent499561d86cb5f1eecf468d3710fe295b0fc99627
[NTVDM]
- Call CpuUnsimulate in EmulatorTerminate so that we really stop the CPU, before stopping the rest of the VM.
- We can reset CpuRunning to TRUE in CpuSimulate *only* if the VM is still running AND the CpuCallLevel is strictly positive (>=1 means, CPU halted or running; ==0 means, CPU stopped).

svn path=/trunk/; revision=64741
reactos/subsystems/ntvdm/cpu/cpu.c
reactos/subsystems/ntvdm/cpu/cpu.h
reactos/subsystems/ntvdm/emulator.c