[PVS-Studio] Fix extra argument in fprintf() OutputTraceLine() and bad logic in DebuggerMouseClick() bug #301

This commit is contained in:
michaelangel007 2015-07-30 07:47:01 -07:00
parent 56c52beac9
commit 2381734256

View File

@ -7382,7 +7382,7 @@ void OutputTraceLine ()
(unsigned)regs.sp, (unsigned)regs.sp,
(char*) sFlags (char*) sFlags
, sDisassembly , sDisassembly
, sTarget //, sTarget // TODO: Show target?
); );
} }
} }
@ -8929,7 +8929,7 @@ void DebuggerMouseClick( int x, int y )
DebugDisplay( UPDATE_DISASM ); DebugDisplay( UPDATE_DISASM );
} }
else // AD 00 00 else // AD 00 00
if ((cx > 4) & (cx <= 13)) if ((cx > 4) && (cx <= 13))
{ {
g_bConfigDisasmOpcodesView ^= true; g_bConfigDisasmOpcodesView ^= true;
DebugDisplay( UPDATE_DISASM ); DebugDisplay( UPDATE_DISASM );