Fix vmwinst.exe crash (bug #5134).

svn path=/trunk/; revision=45224
This commit is contained in:
Dmitry Gorbachev 2010-01-24 00:50:54 +00:00
parent 280c5bef1e
commit 8b7f482f2a

View file

@ -1258,7 +1258,7 @@ KiTrap0DHandler(IN PKTRAP_FRAME TrapFrame,
{
/* Get the IOPL and compare with the RPL mask */
Iopl = (TrapFrame->EFlags & EFLAGS_IOPL) >> 12;
if ((TrapFrame->SegCs & RPL_MASK) == Iopl)
if ((TrapFrame->SegCs & RPL_MASK) > Iopl)
{
/* I/O privilege error -- check for known instructions */
if ((Instruction == 0xFA) || (Instruction == 0xFB)) // CLI or STI